Image Optimizer & Converter: WebP, AVIF, JPG
Pricing
from $2.00 / 1,000 image optimizeds
Image Optimizer & Converter: WebP, AVIF, JPG
Compress images and convert to WebP, AVIF, JPG or PNG in bulk. Resize to max width/height, hit a target file size in KB, strip EXIF/GPS, auto-rotate phone photos. Image URLs or uploads, up to 1,000 per run. $0.002 per image, failures free. API, n8n, Make and MCP ready.
Pricing
from $2.00 / 1,000 image optimizeds
Rating
0.0
(0)
Developer
Anthony Crawford
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
an hour ago
Last modified
Categories
Share
Compress images, resize them and convert to WebP, AVIF, JPG or PNG in bulk. Image Optimizer & Converter takes image URLs or uploads and returns smaller, web-ready files: shrunk to fit your max width/height (never enlarged), optionally squeezed under a target file size in KB, with EXIF and GPS location data removed and phone photos rotated upright. Every result has a direct download link and before/after sizes. $0.002 per image, failed images are free. A simple image compression API for websites, shops, n8n/Make/Zapier automations and AI agents via the Apify MCP server.
What can this image compressor and converter do?
- 🗜️ Compress images with modern encoders (libwebp, AVIF, mozjpeg, palette PNG). Typical savings: 60–95% for camera photos (a 14.7 MB photo became ~165 KB WebP in our test).
- 🔄 Convert image formats: JPEG, PNG, WebP, AVIF, GIF (first frame) and TIFF → WebP, AVIF, JPEG, PNG, or
keepthe original format. - 📏 Resize to fit inside
maxWidth×maxHeight, keeping the aspect ratio. Small images are never upscaled. - 🎯 Target file size: set
targetMaxKB(e.g. 500) and the Actor finds the highest quality that fits, shrinking slightly if needed. Rows reporttargetMet. - 🔒 Privacy:
stripMetadata(on by default) removes EXIF, GPS, camera and XMP data; each row says whether the original had GPS. - 📱 Auto-rotate from EXIF orientation, and flatten transparency onto a background color when converting to JPEG.
- 📦 Bulk: up to 1,000 images per run.
- 🛡️ Safe downloads: only public http(s) URLs; private/loopback/link-local/cloud-metadata addresses are blocked, with size and time limits.
Who is it for?
- Website owners, shops and bloggers converting product photos to WebP/AVIF for faster pages and better Core Web Vitals.
- No-code automations (n8n, Make, Zapier) that must meet upload limits like "under 500 KB" or "max 2000 px".
- AI agents (via Apify MCP or API) that need a smaller or web-friendly copy of an image before uploading, emailing or embedding it.
How to convert images to WebP in bulk
- Click Try for free (or Start) and sign in to Apify.
- Paste image links into Image URLs (or upload files).
- Choose Output format (WebP is the default) and, optionally, Max width and Target max file size.
- Leave Strip metadata on to remove GPS location.
- Click Start. The Output tab lists each file with
outputUrland how much space was saved.
Input example
{"imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg"],"outputFormat": "webp","maxWidth": 1600,"targetMaxKB": 300,"stripMetadata": true}
This optimizes 1 image = $0.002.
All input fields
| Field | Type | Default | Notes |
|---|---|---|---|
imageUrls | array of strings | – | Public image links, or kvs://<store>/<key>. |
keyValueStoreImages | array | – | Uploads or <storeId>/<key> references. |
outputFormat | string | webp | webp, avif, jpeg, png, keep. |
quality | integer | per format | Empty = WebP 80, AVIF 55, JPEG 82, PNG lossless. |
maxWidth / maxHeight | integer | – | Fit inside, no upscaling. |
targetMaxKB | integer | – | Max output size per file. |
stripMetadata | boolean | true | Removes EXIF/GPS/XMP, converts to sRGB. |
autoRotate | boolean | true | |
backgroundColor | hex | #FFFFFF | Behind transparency for JPEG. |
minQuality | integer | 35 | Floor for the target-size search. |
effort | integer | 4 | 0–9 encoder effort (WebP/AVIF). |
maxInputSizeMb | integer | 25 | Max 50. |
downloadTimeoutSecs | integer | 30 |
Output example
{"source": "https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg","format": "avif","width": 1600,"height": 719,"originalFormat": "jpeg","originalBytes": 14679474,"outputBytes": 97000,"savedPercent": 99.3,"quality": 55,"targetMet": true,"metadataStripped": true,"hadGps": false,"outputUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/001-Fronalpstock_big.avif","status": "ok","errorCode": null,"charged": true}
Error codes: INVALID_URL, BLOCKED_URL, DNS_FAILED, HTTP_ERROR, DOWNLOAD_FAILED, DOWNLOAD_TIMEOUT, TOO_LARGE, TOO_MANY_PIXELS, UNSUPPORTED_FORMAT, NOT_FOUND, PROCESSING_FAILED. Error rows are never charged.
How much does image compression cost?
| What you do | Images | Price |
|---|---|---|
| 1 photo → WebP | 1 | $0.002 |
| 500 product photos → WebP, max 1600 px | 500 | $1.00 |
| 1,000 images | 1,000 | $2.00 |
| Event | Price | When |
|---|---|---|
image-optimized | $0.002 | One optimized file was saved and is downloadable. |
apify-actor-start | Apify's tiny standard start fee | Once per run. |
Failures are free, and runs stop cleanly at your maximum charge per run. Apify's free plan includes monthly platform credit, enough to try it many times.
Use with AI agents (Apify MCP server)
Load just this tool from the hosted Apify MCP server:
https://mcp.apify.com?tools=bigaceboy/image-optimizer-converter
{"mcpServers": {"image-optimizer": { "url": "https://mcp.apify.com?tools=bigaceboy/image-optimizer-converter" }}}
Then ask: "Convert these product photos to WebP under 300 KB, max 1600 px wide, and remove the GPS data." The agent sends imageUrls, outputFormat, maxWidth, targetMaxKB and reads outputUrl.
Use with n8n, Make and Zapier
- n8n: Apify node → Actors → Run an Actor and Get Dataset → Actor
bigaceboy/image-optimizer-converter, input{ "imageUrls": ["{{ $json.imageUrl }}"], "outputFormat": "webp", "maxWidth": 1600 }, then uploadoutputUrlto WordPress, Shopify, S3 or Google Drive. - Make: Apify → Run an Actor (wait for finish) → Get Dataset Items → map
outputUrl. - Zapier: Apify → Run Actor (synchronous), then use
outputUrl.
Use with the API (curl, JavaScript, Python)
curl -X POST "https://api.apify.com/v2/acts/bigaceboy~image-optimizer-converter/run-sync-get-dataset-items" \-H "Authorization: Bearer $APIFY_TOKEN" \-H 'Content-Type: application/json' \-d '{"imageUrls":["https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg"],"outputFormat":"webp","maxWidth":1600}'
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('bigaceboy/image-optimizer-converter').call({ imageUrls: ['https://example.com/photo.jpg'], outputFormat: 'webp', maxWidth: 1600 });const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((i) => [i.outputUrl, i.savedPercent]));
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("bigaceboy/image-optimizer-converter").call(run_input={"imageUrls": ["https://example.com/photo.jpg"], "outputFormat": "webp", "maxWidth": 1600})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["outputUrl"], item.get("savedPercent"))
FAQ
WebP or AVIF: which should I choose?
WebP works in every modern browser and is fast to encode. AVIF is usually 20–30% smaller at the same visual quality but slower to encode. If unsure, use WebP.
How do I compress an image to under 500 KB (or 100 KB)?
Set targetMaxKB: 500. The Actor lowers quality step by step down to minQuality, then shrinks dimensions slightly if still needed. Check targetMet in the output.
Does it remove GPS location from photos?
Yes, by default (stripMetadata: true). Each row reports hadGps for the original.
Will it make my images bigger?
It never upscales. If an original is already very well compressed, the new file can be slightly larger; the row shows both sizes so you can keep the original.
Does it support HEIC or SVG?
Not right now. Convert HEIC on the phone first; SVGs are vectors and don't need this.
Can I keep the original format and only shrink it?
Yes, set outputFormat: "keep" (GIF becomes PNG, TIFF becomes JPEG).
Other tools by this developer
| Tool | What it does | Price |
|---|---|---|
| Social Image Resizer (No Crop) | Fit photos into Instagram/Pinterest/Story sizes without cropping | $0.005 / image |
| Website Screenshot to Social Image | Screenshot any URL into Instagram, Pinterest or OG 1200×630 images | $0.004 / image |
| Markdown & HTML to PDF Converter | Turn Markdown, HTML or a URL into a clean PDF | $0.004 / PDF |
Limits
- Up to 1,000 images per run, 50 MB per file, 100 MP input, 40 MP output (set
maxWidthfor huge panoramas). WebP is limited to 16,383 px per side. - Animated GIF/WebP: first frame only. SVG and HEIC (iPhone HEVC) inputs are not supported.
- Questions or feature requests: use the Issues tab.