Guide
Upscale a whole catalog of product photos at once
Old product photos are often too small: 500 pixels wide from a supplier, a thumbnail from an old site, or a phone shot cropped down. Marketplaces and themes want bigger images, and zoom often only works above a minimum size (check your marketplace’s current image rules). Plain resizing makes small photos soft. An AI upscaler rebuilds sharp edges instead. This guide upscales a whole list of photos in one run and downloads the results into a folder.
This guide uses our AI Image Upscaler on the Apify Store. Every step works with a free Apify account.
What you’ll end up with
A folder of upscaled files, named in order (upscaled-0001.jpg, upscaled-0002.jpg …), and a table that maps each original link to its new file:
| imageUrl | status | inputWidth | outputWidth | outputKey |
|---|---|---|---|---|
| https://…/mug-500.jpg | upscaled | 500 | 2000 | upscaled-0001.jpg |
| https://…/old-page.html | failed |
Failed rows say why (for example, the link opens a web page, not an image) and cost nothing.
1. Collect direct image links
The Actor downloads each image from a link, so you need links that open the image file itself:
- Photos already on your store: open a product image in your browser, right-click it and choose “Copy image address”. Shopify, WooCommerce and most store platforms serve images from a CDN link like this.
- Files on your computer: put them anywhere that gives a public, direct link to each file, such as a public cloud storage bucket.
- A spreadsheet of links: paste the column straight into the input, one link per line.
Links to a web page, a gallery or a Google Drive preview page won’t work: those open HTML, not the image.
2. Pick the settings
- Scale: 2x for photos that are a bit small (1000 px becomes 2000 px), 4x for thumbnails. A 1920 × 1080 image at 2x is 3840 × 2160, which is 4K.
- Image type: Photo for product shots, photos and screenshots. Illustration for logos, drawings, anime and flat colours; it’s about twice as fast.
- Output format: JPEG for product photos (smaller files), PNG or WebP when the image has a transparent background.
3. Run it
- Open the AI Image Upscaler on Apify (its Apify Store page) and click Try for free. A free Apify account comes with monthly credit.
- Paste your links into Image URLs, set the options above and click Start.
- Open the Results table. Each row links to its upscaled file.
Time and cost: a 500 × 500 photo takes about 5–20 seconds; a 1920 × 1080 one about 3 minutes at the default memory. You pay per image, by the size you send in, and failed images are free. The Actor’s Pricing tab has the price per size. Set a maximum cost in the run options if you want a hard cap.
4. Download everything into a folder
For a handful of images, click each outputUrl in the Results table. For hundreds, run this Python script once (install the client with pip install apify-client, and copy your API token from Apify Console → Settings → API & Integrations):
from pathlib import Path
from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("clearpull/image-upscaler").call(run_input={
"imageUrls": [line.strip() for line in open("links.txt") if line.strip()],
"scale": "2",
"imageType": "photo",
"outputFormat": "jpeg",
})
store = client.key_value_store(run["defaultKeyValueStoreId"])
out = Path("upscaled")
out.mkdir(exist_ok=True)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
if row["status"] != "upscaled":
print("skipped", row["imageUrl"], row.get("error"))
continue
record = store.get_record_as_bytes(row["outputKey"])
(out / row["outputKey"]).write_bytes(record["value"])
print(row["imageUrl"], "->", row["outputKey"], f'{row["outputWidth"]}x{row["outputHeight"]}')
links.txt holds one image link per line. The script prints which original became which file, so you can rename them or match them back to products.
Tips
- Check one first. Run three or four typical photos before the whole catalog, and compare Photo and Illustration on a logo or drawing.
- Large originals: the limit is 2.25 megapixels in (for example 1920 × 1080). For a bigger photo, upscale a crop instead.
- Faces: the upscaler treats every part of the image the same way. It doesn’t invent or “fix” faces.
- Privacy: EXIF, GPS and camera data are never copied to the new files, and your images stay in your own Apify run’s storage.
The models are Real-ESRGAN’s realesr-general-x4v3 and realesr-animevideov3 (BSD 3-Clause), run on CPUs, so there’s no GPU to rent or set up.
Need data from another public source, or a different setup? Get in touch.