Image Converter Pro: Target Size, Crop, Dataset Input
Pricing
from $0.91 / 1,000 converted images
Image Converter Pro: Target Size, Crop, Dataset Input
Convert AVIF, JPG, PNG, WebP, GIF, BMP or TIFF to JPG, PNG, WebP or AVIF. Hit a target file size in KB, crop to fill or pad to an exact size, grayscale, ZIP. Reads URLs, dataset fields or key-value store images. Empty input = free demo.
Pricing
from $0.91 / 1,000 converted images
Rating
0.0
(0)
Developer
Actor Factory
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Image converter for AVIF, JPG, PNG, WebP, GIF, BMP and TIFF: hit a target file size in KB, crop or pad to an exact size, and read images from URLs, datasets or key-value stores — $2 per 1,000 images
Give it image links, a dataset from a scraper run or a key-value store full of images, pick the output format and press Start. Every image is converted, saved in the run's storage with a download link, and listed as one row with the size before and after, the final quality and whether your target size was reached. One flat price per image, whatever options you use.
Basic or Pro? If you only need to convert JPG, PNG, WebP, GIF, BMP or TIFF from URLs with an optional maximum width and height, Image Converter does that for less. This Pro version adds AVIF input, a target file size, cover / contain resize modes, grayscale, ZIP output and dataset / key-value store input.
What you get
| sourceUrl | status | format | sourceBytes | bytes | quality | targetKb | achievedKb | scaled | width | height | outputUrl |
|---|---|---|---|---|---|---|---|---|---|---|---|
| https://example.com/IMG_0412.PNG | ok | jpg | 2,913,201 | 199,870 | 71 | 200 | 195.2 | false | 4032 | 3024 | https://api.apify.com/v2/key-value-stores/.../records/0001-IMG_0412.jpg |
| https://example.com/banner.png | ok | jpg | 1,204,330 | 98,112 | 30 | 100 | 95.8 | true | 1710 | 900 | https://api.apify.com/v2/key-value-stores/.../records/0002-banner.jpg |
| https://example.com/missing.png | failed | (error: The server answered HTTP 404 ...) |
Try it free: leave all image inputs empty and press Start — built-in sample images (a PNG with transparency and a JPG photo) are converted with the options you set. Not charged; rows carry _demo: true.
How to use
- Images — any mix of: Image URLs (one per line), a Dataset with image URLs plus the URL field that holds them, and a Key-value store with images (optionally Only keys starting with).
- Convert to: WebP (default), JPG, PNG or AVIF.
- Optional: Target file size (KB), Width / Height with a Resize mode, Quality, Grayscale, Auto-rotate, Remove metadata, Also create a ZIP.
{"imageUrls": ["https://example.com/IMG_0412.PNG", "https://example.com/banner.png"],"outputFormat": "jpg","targetKb": 200,"width": 1600,"height": 1600,"fit": "inside","zipOutput": true}
AVIF input
AVIF files are read directly and can be saved as JPG, PNG, WebP or AVIF. The photo is turned upright and the color profile is kept so colors look the same.
Target size
Set Target file size (KB) for JPG, WebP or AVIF output and every file is made at most that size (1 KB = 1,024 bytes):
- The highest quality from Quality (default 85) down to Minimum quality (default 30) that fits is found by binary search.
- If even the minimum quality is too big, the image is shrunk step by step (keeping the aspect ratio) and the search runs again.
- If it still cannot fit (images are not shrunk below 16 pixels on the short side), the smallest result is saved with a
noteandtargetReached: false. It still counts as a converted image.
Each row shows targetKb, achievedKb, the final quality and scaled (true when the image had to be shrunk). PNG is lossless, so a target size needs JPG, WebP or AVIF.
Resize modes
Set Width and/or Height and choose a Resize mode:
- inside (default) — fit inside the box and keep the aspect ratio: 4000×3000 with width 1200 becomes 1200×900. Either side alone is fine.
- cover — fill the box exactly and crop the overflow from the centre: 4000×3000 with 800×800 becomes 800×800.
- contain — fit inside the box and fill the rest with the Background color: 4000×3000 with 800×800 becomes 800×800 with bars top and bottom. Also accepted as
pad.
Allow enlarging small images is off by default, so images are only made smaller: in cover mode a small image is cropped to the box's aspect ratio without enlarging, in contain mode it is centred on the full-size box. Turn it on to scale small images up to the box.
Inputs (URLs / dataset / key-value store)
- Image URLs — public http(s) links. Duplicates are converted once.
- Dataset — the ID of any dataset, such as a scraper run's
defaultDatasetId. URL field takes dots for nested fields (product.image,images.0) and reads every URL in a list field (imageUrls). - Key-value store — the ID of a store that already holds image files, for example from a downloader run. Every binary record is converted (filter with Only keys starting with); JSON and text records such as
INPUTare skipped. Rows carrysourceKeyinstead ofsourceUrl.
All three can be combined in one run; the 1,000-image limit applies to the total.
Output fields
source(url,dataset,keyValueStoreordemo),sourceUrlorsourceKey,status(okorfailed),error(the reason when it failed — failed images are free)fileName,outputUrl— the converted file in the run's key-value storeinputFormat,format,width,height,originalWidth,originalHeight,fitsourceBytes,bytes,sizeChangePercent(negative = smaller),qualitytargetKb,achievedKb,targetReached,scaled,note,animated,inZip
A STATS record sums up images converted, failed and charged, the options used and the ZIP link (zipUrl). With Also create a ZIP, all converted files are also in images.zip. Download the rows as CSV, Excel or JSON from the run page.
Other options
- Auto-rotate from EXIF (on): portrait photos stay upright.
- Remove metadata (on): EXIF data such as camera details, date and GPS location is not copied into the output. Turn it off to keep EXIF. The RGB color profile is kept either way.
- Grayscale: black-and-white output (transparency is kept in PNG, WebP and AVIF).
- Animated GIFs and multi-page TIFFs: the first frame or page is converted (
animated: true). - Transparency is kept in PNG, WebP and AVIF; JPG has none, so transparent areas get the background color.
Pricing
Pay per event: $0.0013 per converted image ($1.30 per 1,000 images), the same for any file size and any options, including target size, crop and ZIP. Failed downloads, unreadable or oversized images and the demo are free. Store discounts apply automatically: BRONZE −10%, SILVER −20%, GOLD −30%. On the Apify Free plan, the $5 of monthly platform credit covers about 2,500 images a month.
Limits (cannot be raised by input)
- 1,000 images per run (URLs + dataset + key-value store); 25 MB per input file; 50 megapixels per image (protection against "decompression bomb" files)
- WebP allows at most 16,383 pixels per side — set a width or height for bigger images
- ZIP: up to 300 MB of files; images beyond that are still saved and linked, with
inZip: false - Public images only (no login); links to internal network addresses are blocked, also after redirects
- Set a maximum charge per run to cap spend: the run stops cleanly when it is reached and keeps the images converted so far
Use it from the API, Make, n8n or an AI agent (MCP)
Run it and get the rows back in one HTTP call (replace <YOUR_TOKEN> with your Apify API token):
curl -X POST "https://api.apify.com/v2/acts/ucchiii~image-converter-pro/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"imageUrls": ["https://example.com/IMG_0412.PNG"], "outputFormat": "jpg", "targetKb": 200}'
Each row's outputUrl is a direct download link to the converted file.
- Make, n8n, Zapier: use the Apify app / node, pick this Actor and pass the same JSON input.
- AI agents (Claude, Cursor and other MCP clients): add
https://mcp.apify.com?tools=ucchiii/image-converter-proto your MCP settings.
FAQ
Does the target size always hold? When it is reachable, yes: the saved file is measured, never estimated, so bytes is at most targetKb × 1,024. When it is not reachable, you get the smallest result and a note instead of a failure.
Why did my image get smaller in pixels? Only when the target size could not be reached at the minimum quality (scaled: true). Lower Minimum quality to keep more pixels, or raise it to keep more quality.
Which format should I pick? WebP for websites (small, supported by all current browsers), JPG for maximum compatibility for photos, PNG for lossless graphics and screenshots, AVIF for the smallest files where it is supported.
Can I convert SVG or RAW camera files? Not at the moment. Supported inputs are JPG, PNG, WebP, GIF, BMP, TIFF and AVIF. iPhone HEIC photos are not supported.
How long are the files kept? As long as the run's storage is kept under your Apify plan's data retention. Download them (or the ZIP) or copy them to your own storage if you need them longer.
If this Actor saved you time, a rating on the Store helps others find it.
More tools from the same developer
- Image Converter — convert images between JPG, PNG, WebP and AVIF, with optional resize
- Images to PDF — combine image URLs into one PDF or one PDF per image: A4, Letter or fit, margins
- PDF to Image — PDF pages to PNG, JPG or WebP images in bulk: up to 300 DPI, page ranges, one public link per page
- Tesseract OCR — OCR for image URLs and scanned PDFs with built-in Tesseract: text, confidence and line boxes in 8 languages
- Website Image Extractor — every image on your pages with alt text, srcset, size and type (HEAD only), flagging missing alt and oversized images