Bulk Image Converter & Compressor: WebP, AVIF, JPEG, PNG avatar

Bulk Image Converter & Compressor: WebP, AVIF, JPEG, PNG

Pricing

from $1.60 / 1,000 images

Go to Apify Store
Bulk Image Converter & Compressor: WebP, AVIF, JPEG, PNG

Bulk Image Converter & Compressor: WebP, AVIF, JPEG, PNG

Convert public image URLs to WebP, AVIF, JPEG or PNG in bulk. Resize, strip metadata, and get file links with before/after sizes. API and MCP support.

Pricing

from $1.60 / 1,000 images

Rating

0.0

(0)

Developer

Alejandro Rodriguez

Alejandro Rodriguez

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Convert up to 100 public raster image URLs per run to WebP, AVIF, JPEG or PNG. Resize without enlargement, control lossy quality and strip metadata by default. Get one dataset row and a download link per successful image, with before/after byte sizes. Only the first animation frame is converted; output files can be larger than their inputs.

Use it for website assets, product-image preparation, content workflows, or AI agents that need smaller images. An MCP-enabled agent can supply URLs and read the resulting dataset/file links. No external conversion API or third-party API key is needed.

Quick start

The default converts one small public PNG to WebP (verified on the Apify platform on 2026-11-20: completes in seconds, ~79% smaller).

{
"imageUrls": ["https://raw.githubusercontent.com/github/explore/main/topics/nodejs/nodejs.png"],
"targetFormat": "webp",
"quality": 80,
"maxWidth": 1920,
"maxHeight": 1920,
"stripMetadata": true,
"maxFileSizeMb": 50,
"timeoutSeconds": 20
}

For AI agents (MCP)

Actor ID: gunpark/image-converter-compressor. Minimal input: {"imageUrls":["https://raw.githubusercontent.com/github/explore/main/topics/nodejs/nodejs.png"],"targetFormat":"webp"}. Read publicUrl, sizeBefore, sizeAfter, savingsPercent and warnings from the dataset items. MCP server: https://mcp.apify.com?tools=gunpark/image-converter-compressor (running it requires an Apify account).

Inputs

FieldDefaultMeaning
imageUrlsOne GitHub Explore PNG1–100 public HTTP(S) image URL strings, including public Apify file URLs.
targetFormatwebpwebp, avif, jpeg or png.
quality801–100 for WebP, AVIF and JPEG. PNG stays lossless and ignores this value.
maxWidth19201–8192 pixels.
maxHeight19201–8192 pixels. Image fits inside both bounds without enlargement.
stripMetadatatrueStrip input EXIF/XMP and other metadata. Set false to keep metadata supported by the encoder.
maxFileSizeMb50Download limit in MiB, from 1 to 50.
timeoutSeconds201–120 seconds for each download and separately each conversion.

Input formats: PNG, JPEG, GIF, WebP and AVIF. Files must be publicly readable without authentication. Only public destinations on ports 80/443 are accepted, including redirect targets. SVG, HTML, PDF and TIFF are rejected. JPEG output flattens transparency onto white. EXIF orientation is applied before resizing. Only the first animation frame/page is converted, with a warning when the decoder reports multiple pages.

Output

Illustrative item (sizes and IDs are examples):

{
"url": "https://example.org/photo.png",
"key": "image-3cf98b6a-9a45-4a5d-90d2-6880d6f956b0.webp",
"publicUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/image-3cf98b6a-9a45-4a5d-90d2-6880d6f956b0.webp",
"targetFormat": "webp",
"originalFormat": "png",
"contentType": "image/webp",
"width": 800,
"height": 600,
"sizeBefore": 100000,
"sizeAfter": 25000,
"savingsPercent": 75,
"metadataStripped": true,
"warnings": []
}

Sizes are bytes. Savings are (1 - sizeAfter / sizeBefore) * 100, rounded to two decimals. Negative savings mean the converted file is larger; compression is not guaranteed. originalFormat is the decoder's label (heif may identify AVIF). Width/height describe the converted image.

publicUrl uses the SDK's storage URL, including a signature when provided by the platform. Anyone with that link can access the file while it is retained. Local apify run produces a file:// URL, which is local-only. Files are stored with matching MIME types and unique keys, not embedded in dataset rows.

STATE stores convertedImages, failedImages and stoppedForChargeLimit, plus aborted: true after cancellation. A failed image is skipped and counted; if every attempted image fails, the run is marked failed. Storage/upload errors fail the run rather than masquerading as a conversion success.

Pricing

The custom pay-per-event unit is image, charged once per successfully stored image through Actor.pushData(item, 'image'). Failed conversions are not charged. The Actor checks the remaining image budget before the next file and stops when a charge reports eventChargeLimitReached.

One image event is charged per successfully converted image (see the pricing tab). Failed downloads/conversions are not charged an image event. Set "Max total charge" to cap any run.

Limits

  • At most 100 URLs per run, processed sequentially, 50 MiB per download/output, and 25 million decoded input pixels. Corrupt files and decoder warnings are rejected.
  • The decoder/encoder runs locally with a timeout. Aborting cancels downloads and destroys the active conversion pipeline, saves counts and exits. Completed files remain available; aborting during storage may leave an unlisted file. Restarting does not resume work.
  • Resizing and re-encoding can change colors and visual quality. Metadata removal is not redaction of text/faces visible in pixels. Keeping metadata may expose location or device information.
  • No remote URL fetching occurs inside SVG/XML; those formats are rejected before native decoding. No animation preservation, custom ICC management, cropping or background selection.

Only process images you own or have permission to transform. Respect source terms, copyright and trademarks; a public URL does not grant reuse rights. Input URLs are saved in output rows. Avoid sensitive or token-bearing URLs and remember that output file links allow access to the image.

Direct runtime packages: apify (Apache-2.0), sharp (Apache-2.0) and ipaddr.js (MIT). Licensing exception: sharp depends on native libvips (LGPL-2.1-or-later), and prebuilt sharp-libvips distributions declare LGPL-3.0-or-later. Consequently, the requested sharp implementation cannot meet an all-permissive-transitive-dependencies requirement. See the libvips repository and sharp-libvips licensing discussion. sharp links libvips dynamically, consistent with the LGPL. No paid service is used.

Local development

Built from actors/template-cheerio, using Node 24, ESM and Apify SDK 3.x:

npm install --include=optional
npm test
../../tools/node_modules/.bin/apify.cmd validate-schema
New-Item -ItemType Directory -Force storage/key_value_stores/default
Copy-Item default-input.json storage/key_value_stores/default/INPUT.json
../../tools/node_modules/.bin/apify.cmd run

On Linux use apify instead of apify.cmd. Docker keeps optional dependencies because sharp's native Linux codecs require them. No deployment, login or account creation is performed here.

More tools from the same author