Bulk Image Optimizer: Resize, WebP and AVIF avatar

Bulk Image Optimizer: Resize, WebP and AVIF

Pricing

from $3.00 / 1,000 image optimiseds

Go to Apify Store
Bulk Image Optimizer: Resize, WebP and AVIF

Bulk Image Optimizer: Resize, WebP and AVIF

Bulk image optimizer: download image URLs, resize, convert to WebP, AVIF, JPEG or PNG, compress and strip EXIF/GPS metadata. Returns links and bytes saved.

Pricing

from $3.00 / 1,000 image optimiseds

Rating

0.0

(0)

Developer

ClearCheck Tools

ClearCheck Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Shrink your images in bulk. Give it a list of image URLs; it downloads each one, resizes it, converts it to WebP, AVIF, JPEG or PNG, compresses it, strips private metadata (EXIF, GPS) and hands back a download link with the bytes saved. Typical result: 60-90% smaller files for photos, with no visible loss.

All the work is done locally by libvips (through sharp). Images are not sent to any third-party service and nothing is kept after the run storage expires.

What it does

  • Convert: WebP (default), AVIF, JPEG, PNG, or keep each image's own format (original).
  • Resize: maxWidth / maxHeight, with inside, cover, contain or fill modes. Images are never enlarged.
  • Compress: one quality setting (1-100). PNG supports palette quantisation below 100.
  • Strip metadata: removes EXIF, GPS position and camera data by default (the orientation is applied first, so photos are never rotated wrongly). Can be turned off.
  • Transparency: kept for WebP/AVIF/PNG; flattened on white when converting to JPEG.
  • Animated GIF to animated WebP (frames are kept).
  • Accepts JPEG, PNG, WebP, AVIF, GIF, TIFF and SVG input.

Input

{
"imageUrls": ["https://example.com/photo1.jpg", "https://example.com/banner.png"],
"format": "webp",
"quality": 80,
"maxWidth": 1600,
"maxHeight": 0,
"fit": "inside",
"stripMetadata": true
}

Up to 2,000 images per run, 30 MB and 100 megapixels each. Duplicate URLs are ignored.

Output

One dataset item per image, and the optimised files in the run's key-value store (img-0001-xxxxxxxx.webp...).

{
"url": "https://picsum.photos/id/10/2400/1600.jpg",
"status": "ok",
"outputUrl": "https://api.apify.com/v2/key-value-stores/.../records/img-0001-7f8ac15a.webp?signature=...",
"sourceFormat": "jpeg", "sourceWidth": 2400, "sourceHeight": 1600,
"outputFormat": "webp", "outputWidth": 1200, "outputHeight": 800,
"originalBytes": 505464, "outputBytes": 109736, "savedBytes": 395728, "savedPercent": 78.3,
"sourceHadExif": false, "animated": false, "keptOriginal": false, "error": null
}

outputUrl is a signed link: anyone who has it can download the file, even though your storage is otherwise private. Failed images appear with status: "failed" and an error (http_404, not_a_supported_image, file_too_large, timeout, private_address_blocked...) and are not charged.

A run summary (images optimised, failed, total bytes before/after, percentage saved) is stored under the SUMMARY key.

Use cases

  • Website speed: convert a product or blog image library to WebP or AVIF and serve smaller files.
  • E-commerce catalogues: resize thousands of supplier images to one standard width.
  • Privacy: strip GPS and EXIF metadata from photos before you publish them.
  • Pipelines: normalise images scraped by other Actors before storing or sending them on.

Pricing

Pay per event. You can cap spending with the maximum cost per run.

EventPriceWhen it is charged
Image processed$0.003 per image ($3 per 1,000)Once per image downloaded and successfully processed
Actor start$0.00005 per runFlat fee per run start

Not charged: failed downloads, unsupported files, duplicates and invalid URLs. The Actor stops cleanly at your maximum cost.

Good to know

  • Files are stored in the run's key-value store, which follows the platform's retention rules for run storage: download what you need, or move the files to storage of your own.
  • AVIF gives the smallest files but is slower to encode. WebP is the best speed/size/compatibility trade-off.
  • Only list images you have the right to process. Links to private/internal network addresses are refused.
  • Memory: 1 GB handles 4 parallel images of up to ~24 megapixels (measured peak 509 MB). Raise the Actor memory and concurrency together for larger images.

FAQ

Is the download link public? The output link is signed: anyone who has it can download the file, even though your storage stays private.

Which input formats work? JPEG, PNG, WebP, AVIF, GIF, TIFF and SVG. Anything else is reported as failed and is not charged.

Can it handle very large photos? Yes, but AVIF on very large images is slow and uses more memory; use a larger memory setting for batches of big files.

Are failed images charged? No.

More Actors by clearcheck