Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP
Pricing
Pay per usage
Bulk Image Downloader & Optimizer: URLs/Dataset to WebP/JPG+ZIP
Download images in bulk from a list of URLs or any Apify dataset, then resize, convert to WebP, JPEG, PNG or AVIF, strip metadata, remove duplicates and get everything in ZIP files. Works as an integration after any scraper.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Talha Zubayer
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What is Bulk Image Downloader & Optimizer?
Bulk Image Downloader & Optimizer downloads images in bulk from a list of URLs or from any Apify dataset (for example the results of a scraper), then resizes them, converts them to WebP, JPEG, PNG or AVIF, removes hidden metadata (GPS, camera data) and skips duplicates. You get every image as a single file plus ZIP archives you can download in one click, and a results table that shows the size of every image before and after optimization.
Paste some image links and click Start, or attach it to your scraper in the Integrations tab so that every scraper run ends with a ready-to-use folder of optimized images.
What can it do?
- 📥 Download images in bulk from URL lists or dataset fields (nested fields and lists supported, or automatic detection of image links)
- 🗜️ Optimize: convert to WebP, AVIF, JPEG or PNG, set the quality, resize to a maximum width/height (never enlarged)
- 🧹 Clean: strip EXIF/XMP/IPTC metadata (photos are rotated the right way up first)
- 🧬 Deduplicate by link and by SHA-256 fingerprint of the file
- 🏷️ Name files your way:
{index},{originalName},{hash8}or any dataset field such as{sku}or{title}, with optional folders like{brand}/{sku} - 📦 ZIP archives split at the size you choose (default 500 MB)
- 💸 Fair pricing: you pay only for images that were delivered; skipped and failed images are free
- 🔒 Safe by design: only http/https, private and internal network addresses are blocked
- 🔌 Runs on the Apify platform: API, scheduling, integrations (Make, Zapier, n8n, webhooks), monitoring and an MCP server for AI agents
Who is it for?
- 🛒 E-commerce teams moving product photos from supplier catalogs or marketplaces into their own shop, with SKU-based file names
- 🏠 Real estate portals and agencies collecting listing photos, resized and without GPS data
- 🤖 AI and machine-learning projects building image datasets: consistent format, minimum size filter, duplicates removed, SHA-256 per file
- 📣 Marketers and agencies archiving creatives, logos and social media images
- 🕷️ Anyone who scraped image URLs with another Actor (Google Maps, Amazon, Instagram, Airbnb, e-commerce scrapers...) and now needs the actual files
How to download images in bulk
- Click Try for free (or Start) on this page.
- Paste your image links into Image URLs, one per line, or pick a dataset in Dataset with image URLs.
- Choose the Output format (WebP is a good default), and optionally a Maximum width/height.
- Click Start and wait for the run to finish.
- Download the ZIP from the Output tab, or use the direct link of each image in the results table.
Input examples
You can fill in the form in Apify Console or send the input as JSON through the API.
Example 1: a list of image URLs
{"imageUrls": ["https://images.metmuseum.org/CRDImages/ep/web-large/DP-42549-001.jpg","https://images-assets.nasa.gov/image/as17-148-22727/as17-148-22727~medium.jpg","https://upload.wikimedia.org/wikipedia/commons/8/84/Example.svg"],"outputFormat": "webp","quality": 80,"maxWidth": 1600,"createZip": true}
Example 2: images from the dataset of another Actor
Use the ID of the dataset (Console → Storage → Datasets, or the Storage tab of the scraper run). This example takes the images and thumbnail fields of every product, names files by SKU and puts them into one folder per brand:
{"datasetId": "YOUR_DATASET_ID","imageFields": ["images", "thumbnail"],"itemIdFields": ["sku", "url"],"fileNameTemplate": "{sku}-{index}","folderTemplate": "{brand}","outputFormat": "jpeg","quality": 85,"maxWidth": 1200,"minWidth": 200}
Field paths can point into nested objects and lists: images (a list of links), gallery.url (a list of objects with url), media[].src, photos[0]. Leave Image URL fields empty and the Actor finds image links on its own. Relative links (/img/a.jpg) are resolved with the item's url field.
Example 3: run automatically after a scraper (Integrations tab)
- Open the scraper Actor (or its saved task) in Apify Console and go to the Integrations tab.
- Click Add integration (or Connect Actor or task) and search for Bulk Image Downloader & Optimizer.
- Under Start when, choose Run succeeded.
- In the input, set Dataset with image URLs to
{{resource.defaultDatasetId}}, the dataset of the scraper run that just finished. Set Image URL fields if you know which fields hold the images, and choose your format and size. - Click Save, then use Test integration with a past run of the scraper.
The input of the integration then looks like this:
{"datasetId": "{{resource.defaultDatasetId}}","imageFields": ["images"],"outputFormat": "webp","maxWidth": 1600}
If you leave Dataset with image URLs empty, the Actor uses the dataset from the integration's run information (payload.resource.defaultDatasetId). The three sample images of the input form are ignored in integration runs, so you are never charged for them.
Output
Results table (dataset)
Every input image gets one row, also when it was skipped or failed:
{"index": 1,"status": "ok","reason": null,"reasonCode": null,"sourceUrl": "https://images.metmuseum.org/CRDImages/ep/web-large/DP-42549-001.jpg","fileKey": "image-00001-DP-42549-001.webp","fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/image-00001-DP-42549-001.webp","fileName": "00001-DP-42549-001.webp","format": "webp","width": 599,"height": 477,"bytesOriginal": 221383,"bytesFinal": 107460,"savedPercent": 51.5,"originalFormat": "jpeg","originalWidth": 599,"originalHeight": 477,"sha256": "<sha256 of the original file>","source": "imageUrls","sourceItemIndex": null,"sourceField": null,"sourceItem": null}
A skipped or failed row explains why, for example "status": "failed", "reasonCode": "http-404", "reason": "HTTP 404 Not Found: there is no file at this address" or "status": "skipped", "reasonCode": "duplicate", "reason": "Same image as #3 (image-00003-red-shoe.webp)". For dataset input, sourceItem holds identifying fields of the item (for example sku and url), so you can match images back to products. You can export the table as JSON, CSV, Excel or HTML.
Files and ZIP archives (key-value store)
- Images: one record per saved image, keys starting with
image-(for exampleimage-00001-red-shoe.webp). - ZIP files:
archive-001.zip,archive-002.zip, ... with all saved images (and folders, if you set a folder template). - OUTPUT: a summary of the run:
{"status": "completed","message": "Done. 280 saved, 12 skipped, 8 failed. Size: 96.4 MB → 31.2 MB (67.6% smaller). ZIP: 1 file(s).","images": { "processed": 300, "saved": 280, "skipped": 12, "failed": 8, "charged": 280 },"skippedReasons": { "duplicate": 9, "too-small": 3 },"failedReasons": { "http-404": 6, "timeout": 2 },"bytesOriginal": 101083136,"bytesFinal": 32715571,"bytesSaved": 68367565,"savedPercent": 67.6,"zipFiles": [{ "key": "archive-001.zip", "url": "https://api.apify.com/v2/key-value-stores/<storeId>/records/archive-001.zip", "files": 280, "bytes": 32760000 }],"maxCostReached": false}
The Output tab of the run shows the results table, the ZIP files, the single images and this summary.
How much does it cost to download and optimize images?
This Actor uses pay per event pricing, so the cost is easy to predict:
- Image delivered (
image-delivered): charged once for every image that was saved (statusok). The exact price is on the Pricing tab. - Actor start (
apify-actor-start): a tiny fixed fee per run set by Apify ($0.00005 per run at up to 1 GB of memory). - Free: duplicates, images that are too small or too large, broken links and every other skipped or failed image.
Worked example at $2.00 per 1,000 delivered images ($0.002 per image): you send 2,500 image links; 120 are duplicates, 40 are smaller than your minimum size and 90 are broken links. The Actor delivers 2,500 − 120 − 40 − 90 = 2,250 images, so the run costs 2,250 × $0.002 + $0.00005 ≈ $4.50. The 250 skipped and failed images cost nothing.
Maximum cost per run: set Maximum cost per run when you start the Actor (Console run options or maxTotalChargeUsd in the API) and the Actor stops gracefully before going over it. It finishes the images in progress, closes the ZIP file, writes the summary with "status": "stopped-max-cost", and says so in the log. Start again with a higher limit to process the rest.
Limits
- Formats in: JPEG, PNG, WebP, GIF (also animated), AVIF, SVG, BMP (uncompressed) and TIFF. HEIC, ICO, JPEG XL and PDF are not supported.
- Formats out: original, WebP, JPEG, PNG or AVIF. SVG files and animated GIFs keep their original format unless you choose a format; animated images stay animated as WebP.
- File size: up to 25 MB per file by default, configurable up to 100 MB.
- Image size: up to about 40 megapixels with 512 MB of memory and 80 megapixels with 1 GB (the default). Bigger images are skipped with a clear reason.
- ZIP files: split at 500 MB by default (10–2,000 MB). With 512 MB of memory, ZIP files are at most 409 MB because of disk space.
- Memory: 512 MB to 1 GB. The Actor streams files through disk, so memory use does not grow with the number of images.
- Links: only
http://andhttps://. Links to private or internal network addresses, and links with a username or password, are refused. - No logins: the Actor does not send cookies or passwords, so images behind a login or paywall cannot be downloaded.
- Order: images are downloaded in parallel, so rows may arrive in a different order; the
indexcolumn keeps the input order.
FAQ
Will I pay for images that failed or were skipped?
No. Only images with status ok are charged. Duplicates, too small or too large images, broken links, blocked links and other errors are free, and each of them has a reason in the results.
Why was an image skipped or why did it fail?
Look at the reason and reasonCode columns. Common cases: http-404 (the link is broken), http-403 (the website refuses downloads), timeout (the server was too slow; increase Download timeout), not-an-image (the link points to a web page, not an image), duplicate, too-small (below Minimum width/height) and too-large (above Maximum file size).
How do I download all images at once?
Open the Output tab of the run and download the ZIP file, or use zipFiles[].url from the OUTPUT record. Each image also has its own link in the fileUrl column.
Can I keep the original files without any change?
Yes. Set Output format to Original, leave the maximum width and height empty and turn off Remove metadata. Files are then saved byte for byte as downloaded.
Why is an SVG file bigger after conversion?
SVG is a vector format: a small text file that can be drawn at any size. Converting it to WebP, JPEG, PNG or AVIF turns it into pixels, which usually makes it bigger. Keep Original format to leave SVG files unchanged.
Some website blocks the downloads. What can I do?
Lower Parallel downloads (for example to 2 or 3) and raise Retries per image. Some websites refuse all automated downloads; those images are reported as failed and not charged.
Can I use it through the API or from an AI agent?
Yes. Start it with the Apify API, the Apify JavaScript or Python client, Make, Zapier or n8n, or from AI agents through the Apify MCP server. The input and output are fully described, so agents can chain it after any scraper.
Does it work with images from Google Maps, Amazon, Instagram or other scrapers?
Yes. Use the scraper's dataset as input and set Image URL fields to the field that holds the images (for example imageUrls, images, thumbnailUrl or displayUrl), or leave it empty to detect image links automatically.
Responsible use
- Download only images that you have the right to download and use: your own images, images you have permission or a license for, or images in the public domain. Respect copyright, trademarks and the terms of the websites you download from.
- Do not use this Actor for private or login-protected content. It does not log in anywhere and is not meant to access content that is not publicly available.
- Photos of people can be personal data. If you collect them, make sure you have a legal basis and follow privacy laws such as the GDPR.
- Keep the load on websites reasonable: use moderate Parallel downloads for small websites.
The sample images in the input form are in the public domain or CC0: Wheat Field with Cypresses by Vincent van Gogh (The Metropolitan Museum of Art, Open Access, CC0), The Blue Marble (NASA, Apollo 17, public domain) and Example.svg (Wikimedia Commons, public domain).
Support
Found a bug or need a feature? Open an issue on the Issues tab and include the run ID; we usually reply within a few days.