Image Converter & Optimizer (WebP, AVIF, JPEG, PNG) avatar

Image Converter & Optimizer (WebP, AVIF, JPEG, PNG)

Pricing

Pay per event

Go to Apify Store
Image Converter & Optimizer (WebP, AVIF, JPEG, PNG)

Image Converter & Optimizer (WebP, AVIF, JPEG, PNG)

Bulk-convert and compress images from URLs or a dataset to WebP, AVIF, JPEG or PNG. Resize, crop, fix orientation, strip metadata, hit a target file size. Failed images are free.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Cellwright

Cellwright

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Convert and compress images in bulk – from a list of URLs or straight from the dataset of another Actor (product, listing or real-estate scrapers). Output WebP, AVIF, JPEG or PNG, resize or crop to exact thumbnails, fix camera orientation, strip EXIF/GPS metadata and even hit a target file size. One file and one clean record per image. Failed images are free.

Ideal for web performance (Core Web Vitals, PageSpeed), e-commerce image pipelines, CMS migrations, thumbnail generation and AI agents that need small, consistent images.

Why this Actor

  • Modern formats: WebP and AVIF (typically 30–80 % smaller than JPEG/PNG), plus JPEG, PNG, GIF or "keep original format".
  • Chain it after a scraper: pick a dataset and the Actor finds the image field itself (imageUrl, image, images[], url, src, …) or use your own field path (product.image).
  • Resize the way you need: inside (keep aspect ratio, never upscale by default), cover (exact size, cropped – thumbnails), contain (exact size, padded with a colour or transparency).
  • Target file size: e.g. "every image ≤ 100 kB" – the quality is lowered step by step, never below your minimum.
  • Correct by default: EXIF orientation applied (no sideways photos), colour profile kept, transparency kept (flattened onto your background colour for JPEG), animated GIF/WebP stay animated, CMYK and 16-bit images handled.
  • Privacy: EXIF data such as GPS location and camera serials are removed unless you want to keep them.
  • Fair and safe: pay only for converted images; download errors, 404s and non-images are free. Private/internal addresses are blocked.

Input

FieldDefaultDescription
images–Direct image URLs (JPEG, PNG, GIF, WebP, AVIF, BMP, TIFF, ICO), max 50 MB each
datasetId–Optional: take image URLs from a dataset (combined with images)
urlFieldautoDataset field with the URL or a list of URLs; dot path allowed
formatwebpwebp, avif, jpeg, png, gif, original
quality801–100 for WebP, AVIF, JPEG
width, height0Max size (inside) or exact size (cover/contain); 0 = keep
fitinsideinside, cover, contain
upscalefalseEnlarge smaller images with inside
background#ffffffFlatten/pad colour, or transparent
targetSizeKb0Max file size in kB (lossy formats), 0 = off
minQuality40Lowest quality for the target-size search
losslessfalseLossless WebP/AVIF (logos, screenshots)
stripMetadatatrueRemove EXIF/GPS
keepColorProfiletrueKeep ICC profile
keepAnimationtrueKeep animations (max 300 frames)
progressivetrueProgressive JPEG
maxImages1000Budget guard per run
maxConcurrency4Parallel downloads (1–16)

Example – product thumbnails from a scraper dataset:

{
"datasetId": "YOUR_DATASET_ID",
"format": "webp",
"width": 600,
"height": 600,
"fit": "contain",
"background": "#ffffff",
"targetSizeKb": 60
}

Output

Converted files are stored in the run's key-value store (keys like 0001-product-photo.webp). One dataset record per image:

FieldDescription
sourceUrlImage URL from the input
okfalse if the image could not be converted (then free)
key, outputUrlKey-value store key and download URL of the converted file
format, contentTypeOutput format and MIME type
width, height, framesOutput size and number of frames
outputBytes, originalBytes, savedBytes, savedPercentFile sizes and savings
originalFormat, originalWidth, originalHeight, originalFramesSource image
quality, losslessQuality used (after a target-size search)
targetSizeReachedtrue/false with targetSizeKb, else null
hasAlpha, outputMegapixelsTransparency, output megapixels (all frames)
error, errorTypeReason if ok is false: input, http, network, blocked
processedAtISO timestamp

Dataset views: Images (with preview) and Details. A run summary (images converted/failed, total savings) is in the key-value store record OUTPUT.

Pricing (pay per event)

  • $0.001 per converted image (up to 10 megapixels of output)
  • Very large or animated outputs count once per started 10 MP (width × height × frames), e.g. a 24 MP photo without resizing = 3 events
  • Free: download errors, 404s, non-images, files over the limits

Example: 1,000 product photos resized to 1200 px WebP = $1.00.

Limits

  • Max 50 MB per file, 100 megapixels input, 40 megapixels output per frame, 300 animation frames.
  • No HEIC/HEIF input yet, no SVG rasterising.
  • Public URLs only (no logins, cookies or custom headers). Process only images you are allowed to use.

Use with AI agents / API

Flat, stable camelCase fields; run via the Apify API or MCP server, read the dataset and download outputUrl.