Image Converter & Compressor – HEIC, AVIF, WebP, JPG, PNG
Pricing
from $1.50 / 1,000 image converteds
Image Converter & Compressor – HEIC, AVIF, WebP, JPG, PNG
Convert and compress images in bulk: HEIC to JPG (iPhone), AVIF, WebP, JPEG, PNG, GIF, TIFF, SVG in; WebP, AVIF, JPEG, PNG, GIF or TIFF out. Resize, strip EXIF/GPS, compress to a target size in KB, keep animations, ZIP. From URLs, a dataset or uploaded files. Failed images are free.
Pricing
from $1.50 / 1,000 image converteds
Rating
0.0
(0)
Developer
Joshua White
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Convert and compress images in bulk. Give it image URLs, a scraper's dataset or files in a key-value store, pick a format, and get back smaller files with a download link for each one.
- Reads: JPEG, PNG, WebP, AVIF, HEIC/HEIF (iPhone photos), GIF, TIFF, BMP and SVG.
- Writes: WebP, AVIF, JPEG, PNG (lossless or palette-compressed), GIF and TIFF. Or "same as input" to just compress.
- Compress to a size: "under 100 KB" finds the highest quality that fits, and shrinks the image only if it must.
- Resize: max width/height, crop to fill (thumbnails), pad, or stretch.
- Strip EXIF and GPS location data. Photos are turned upright first, so portrait shots stay portrait.
- Animated GIF and WebP stay animated when the output is WebP or GIF.
- ZIP of every converted file, if you want one.
- Failed images are free: broken links, non-images and files that are too big cost nothing.
Try it: the input is prefilled with three images (a JPEG photo, a PNG with transparency and an iPhone HEIC). Click Start and the WebP files are ready in a few seconds.
How to convert images in bulk
- Paste image URLs, one per line. Google Drive and Dropbox share links work.
- Or point it at a dataset (the output of any scraper) and name the field with the image URLs, e.g.
imagesorproduct.images. Lists of URLs and lists of{ "url": … }objects both work. - Or upload files to a key-value store in the Apify Console and give its ID or name.
- Pick the output format and options, then click Start.
- Open the Images table: every row has a link to the converted file. The run's key-value store holds all files,
and
images.zipif you turned the ZIP on.
Which format should I pick?
| Format | Best for | Notes |
|---|---|---|
| WebP | Websites, shops, CMS uploads | Works in every current browser. Smaller than JPEG at the same look, and keeps transparency and animation. |
| AVIF | The smallest photos | About half the size of WebP for photos. Supported by current browsers; older apps may not open it. |
| JPEG | Anything that must open everywhere | Email, marketplaces, print shops. No transparency: transparent areas get the background colour. |
| PNG | Logos, screenshots, graphics | Lossy by default (palette, like TinyPNG): in our test a 225 KB transparent PNG became 53 KB. Turn on Lossless for exact pixels. |
| Same as input | Just compress | JPEG stays JPEG, PNG stays PNG. HEIC becomes JPEG, SVG and BMP become PNG. |
HEIC to JPG
iPhones save photos as HEIC. Many websites, shops and Windows apps can't open them. Set the format to JPEG (or WebP) and give the HEIC links or files: each photo comes out as a normal JPEG, upright, with the GPS location removed. Many other converters skip HEIC because the usual Linux image libraries can't read it; this one decodes it.
What you get for each image
| Field | What it is |
|---|---|
url | Link to the converted file (in the run's key-value store). |
key | The file's name in the key-value store, e.g. IMG_0412.jpg. |
status | ok or failed. |
inputFormat, outputFormat | The real format of the source (read from the file itself, not the extension) and the output format. |
inputBytes, outputBytes, savedPercent | File sizes before and after, and how much smaller the new file is. |
inputWidth, inputHeight, outputWidth, outputHeight | Pixel sizes before and after. |
frames | Frames kept (1 unless an animation stayed animated). |
quality | The quality used. With a target size, the quality that fit. |
hitTarget | With a target size: true if the file fits under it. |
note | Anything worth knowing, e.g. "animated input: first frame only". |
errorCode, error | Why an image failed, in plain words. Failed rows are free. |
source, index | The input URL or key, and its position in your list. |
The run's OUTPUT record has the totals: converted, failed, bytes saved, errors by type and the ZIP link.
How much does it cost?
$1.50 per 1,000 images up to 16 megapixels each, which covers phone photos (12 MP), 4K images and almost every web image. Bigger files count once per started 16 MP: a 24 MP camera photo counts twice, a 46 MP one three times. Failed images are free. Apify's $5 monthly free credit covers about 3,000 images.
Set a maximum cost on the run and it stops cleanly when it's reached: it never converts an image it can't charge for.
Input example
{"imageUrls": [{ "url": "https://example.com/photos/IMG_0412.HEIC" },{ "url": "https://example.com/products/shoe-red.png" }],"format": "webp","quality": 80,"maxWidth": 1920,"maxHeight": 1920,"fit": "inside","targetSizeKb": 0,"stripMetadata": true,"createZip": true}
Convert a scraper's product images:
{"datasetId": "YOUR_DATASET_ID","datasetField": "images","format": "webp","maxWidth": 1200}
Errors you may see
errorCode | Meaning |
|---|---|
HTTP_404, HTTP_403, … | The server answered with that status. |
NOT_AN_IMAGE | The link returned a web page or another file type, not an image. |
CORRUPT_IMAGE, CONVERT_FAILED | The file is damaged or cut short. |
TOO_LARGE | The file is over the size limit (100 MB by default, up to 200 MB). |
NEEDS_MORE_MEMORY | A very large image needs more memory than the run has. The message says how much: run again with that memory. |
OUTPUT_TOO_LARGE | WebP can't be bigger than 16,383 px a side. Set a max width or pick JPEG/PNG. |
ROBOTS_DISALLOWED | The site's robots.txt asks automated tools not to download its files. |
DNS, TIMEOUT, CONNECTION, TLS | The site could not be reached. |
BLOCKED_ADDRESS | The link points to a private or local network address. |
Memory and speed
The default is 2 GB, which handles photos up to about 60 MP as WebP (more as JPEG or PNG), HEIC up to about 40 MP and
AVIF up to about 30 MP. Bigger images fail for free with NEEDS_MORE_MEMORY and the memory to use. At 2 GB, typical
web photos (about 3 MP) take about 1 second each, so 1,000 take about 15 minutes. Apify gives more CPU with more memory,
so big batches finish faster at 4 or 8 GB.
Limits
- Only public images: no logins. The tool respects robots.txt and identifies itself in its user agent.
- Images up to 200 megapixels. SVG files are rendered at their own size.
- HEIC metadata is not carried over (the photo itself is). Multi-image HEIC files (bursts) give the first image.
- Animated AVIF and animated PNG are not written; those outputs take the first frame.
Use it from code
Run it with the Apify API or the Apify client for JavaScript or Python, then read the dataset for the file links.
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("oldjard/image-converter-compressor").call(run_input={"imageUrls": [{"url": "https://example.com/a.heic"}],"format": "jpeg",})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["status"], row.get("url"), row.get("error"))
Chain it after a scraper with an Apify integration ("Actor run succeeded" → run this actor with the scraper's
datasetId), so new product photos are converted as soon as they're scraped.