Image Compressor & Converter - Batch WebP, AVIF, JPEG, PNG avatar

Image Compressor & Converter - Batch WebP, AVIF, JPEG, PNG

Pricing

$1.50 / 1,000 images processed

Go to Apify Store
Image Compressor & Converter - Batch WebP, AVIF, JPEG, PNG

Image Compressor & Converter - Batch WebP, AVIF, JPEG, PNG

Bulk compress, resize and convert images to WebP, AVIF, JPEG or PNG. Get files one by one or as a ZIP. Pay only per image processed.

Pricing

$1.50 / 1,000 images processed

Rating

0.0

(0)

Developer

Rinveta

Rinveta

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Image Compressor & Converter – Batch WebP, AVIF, JPEG, PNG

Bulk image compressor, resizer and converter. Give it a list of image URLs (or a dataset, or your own key-value store) and get back smaller images in WebP, AVIF, JPEG or PNG – one file per image plus a single ZIP. Typical savings are 60–95 % of the original file size with no visible quality loss, which means faster websites, lighter e-commerce catalogues and cheaper storage.

No browser, no scraping: the Actor only downloads the image URLs you provide and processes them with a fast native image library (libvips), a fast native image library.

What can you do with it?

  • Convert images to WebP or AVIF in bulk (JPEG to WebP, PNG to WebP, JPG to AVIF, WebP to JPEG…).
  • Compress images online without losing quality: tune quality 1–100, lossless WebP/AVIF, 8-bit palette PNG.
  • Resize images in batch: max width / max height, fit modes (inside, cover, contain, fill), never upscale.
  • Optimize e-commerce product photos: feed the image column of a product dataset and get web-ready files.
  • Strip EXIF and GPS metadata (default) and auto-rotate photos by EXIF orientation.
  • Download everything as a ZIP or use the per-image URLs from the dataset in your pipeline or API call.

Use cases

  • Image converter for e-commerce: scrape a catalogue with any Actor, pass its dataset (inputDatasetId + datasetUrlField) to this Actor as the last step, and get web-ready WebP or AVIF files plus a ZIP.
  • Compress images for page speed: shrink hero images and galleries to hit Core Web Vitals targets (LCP) without changing the visible quality.
  • JPG to WebP / PNG to WebP converter: a list of URLs in, WebP out, with the saved bytes per image in the dataset.
  • Prepare images for AI and marketplaces: resize to a maximum width or height, strip EXIF/GPS, convert transparency to a solid background for JPEG.
  • Clean up an archive: recompress each file in its own format (outputFormat: original) and keep the original when it is already optimal.

Input

FieldDescription
imageUrlsDirect URLs of the images (JPEG, PNG, WebP, AVIF, GIF, TIFF, HEIC, SVG).
inputDatasetId + datasetUrlFieldAlternative: a dataset (e.g. from another Actor) whose items contain an image URL in the given field.
inputKeyValueStoreId + keyPrefixAlternative: images you uploaded to a key-value store.
outputFormatwebp (default), avif, jpeg, png or original (recompress each image in its own format).
quality1–100, default 80.
lossless, pngPalette, avifEffortLossless WebP/AVIF, 8-bit PNG, AVIF CPU effort (default 2 = fast).
maxWidth, maxHeight, fit, withoutEnlargement, backgroundColorResizing and transparency fill (JPEG).
autoRotate, keepMetadataEXIF handling. Metadata is removed by default.
keepOriginalIfLargerIf recompression would not make the file smaller, return the original untouched (default on).
createZip, maxImages, maxImageSizeMB, concurrencyZIP output and safety limits.

Example input:

{
"imageUrls": [
{ "url": "https://upload.wikimedia.org/wikipedia/commons/a/a7/Camponotus_flavomarginatus_ant.jpg" }
],
"outputFormat": "webp",
"quality": 80,
"maxWidth": 1600
}

Output

One dataset item per image:

{
"sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
"status": "converted",
"outputKey": "0001-PNG_transparency_demonstration_1.webp",
"outputUrl": "https://api.apify.com/v2/key-value-stores/<STORE_ID>/records/0001-PNG_transparency_demonstration_1.webp",
"originalFormat": "png",
"outputFormat": "webp",
"originalWidth": 800,
"originalHeight": 600,
"outputWidth": 800,
"outputHeight": 600,
"originalBytes": 224566,
"outputBytes": 69056,
"savedBytes": 155510,
"savedPercent": 69.2
}

status is converted, kept-original (already optimal) or failed (with an error message, e.g. HTTP 404 – failed images are not charged). The key-value store also contains images.zip with all results and an OUTPUT record with totals (images, bytes before/after, percent saved, ZIP URL).

Pricing

Pay per event: $0.0015 per processed image (event image-processed, $1.50 per 1,000 images). Failed downloads and skipped images are not charged. Platform usage is included in the event price.

FAQ

How do I convert JPG or PNG to WebP in bulk? Add the image URLs to imageUrls, keep outputFormat on webp and run. Download the files one by one or as images.zip.

How much will my images shrink? Typically 60–95 % for photos at quality 80; the per-image savedPercent shows the exact result. If a file would not get smaller, the original is returned (keepOriginalIfLarger).

Can I convert images that are on my computer? Upload them to a key-value store in your account and use inputKeyValueStoreId with an optional keyPrefix.

WebP or AVIF? WebP is supported by every modern browser and is fast. AVIF is usually smaller but takes more CPU time (avifEffort, more memory).

Are failed images charged? No. Only successfully processed images ($0.0015 each).

Is metadata removed? Yes by default (EXIF, GPS). Set keepMetadata to keep it.

Good to know

  • Only the URLs you supply are downloaded; no crawling, no link following. Private/internal network addresses are refused.
  • You are responsible for having the right to process the images you submit.
  • Animated GIF/WebP: kept animated only when the output is WebP; other formats keep the first frame.
  • For very large batches use concurrency 4–8 and at least 2 GB memory (AVIF: 4 GB).

Run locally / integrate

npm install
echo '{"imageUrls":[{"url":"https://example.com/photo.jpg"}],"outputFormat":"webp"}' > storage/key_value_stores/default/INPUT.json
node src/main.js

Call it from the Apify API, the JavaScript/Python client, Make, Zapier, n8n or as a tool for AI agents (MCP).

More Actors by Rinveta for data pipelines:

Related searches: image converter, image compressor, compress images, optimize images, webp converter, avif converter, jpg to webp, png to webp, bulk image resize, batch image processing.