Skip to content
//Image Resizer & Converter example\\

AVIF squares with error rows

Two images as 500x500 lossless AVIF; broken links come back as free rows that say what went wrong.

Updated November 12, 2026

What this example returns

The dataset’s “Download links” view shows 6 columns: File, Download, Width, Height, Bytes, and Source. See every output field.

What each setting does

The input this example runs Image Resizer & Converter with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Image URLs imageUrls

https://upload.wikimedia.org/wikipedia/commons/9/9a/Gull_portrait_ca_usa.jpg, https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png, https://upload.wikimedia.org/wikipedia/commons/does-not-exist-404.jpg, https://scrape.ly/, https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_l…

Direct links to the images, one per line: JPEG, PNG, WebP, GIF (animated too), AVIF, HEIC/HEIF, TIFF, BMP or ICO, up to 100 MB each. Google Drive, Dropbox and GitHub share links are turned into download links automatically. Each image gives one file per output size. You can also (or instead) take images from a…

Width (px) width

500

Target width in pixels. Leave empty to set only the height, or leave both empty to keep the size and only convert or compress. With only one side set, the other follows the image's proportions.

Height (px) height

500

Target height in pixels. With both width and height set, 'Fit' decides how the image fills that box.

Fit fit

Fill (stretch)

How the image fits a box when both width and height are set. Inside: keep proportions, fit within the box (no cropping). Cover: fill the box exactly and crop what sticks out. Contain: fit within the box and pad the rest with the background colour. Fill: stretch to the exact size.

Default: Inside (keep proportions, no crop) → this example uses Fill (stretch)

Output format format

AVIF

File format of the results. WebP and AVIF give the smallest files, JPEG opens everywhere, PNG is lossless with transparency. 'Same as source' keeps each image's own format (HEIC becomes JPEG).

Default: WebP → this example uses AVIF

Enlarge smaller images allowUpscale

Yes

Off: images smaller than the target keep their size (no blurry enlarging). On: they are enlarged to the target.

Default: No → this example uses Yes

Lossless WebP / AVIF lossless

Yes

Keep every pixel exactly (bigger files). Best for logos, screenshots and graphics with text. JPEG is always lossy; PNG, GIF, TIFF and BMP are always lossless.

Default: No → this example uses Yes

File name fileNameTemplate

{index}-{name}-{width}x{height}

Name of each saved file, without the extension. Placeholders: {name} (the source file name), {index} (position in the input), {width}, {height}, {size} (the requested size) and {format}. With several sizes, '-x' is added when the name has no size placeholder. Same names get -2, -3 ...

Default: {name} → this example uses {index}-{name}-{width}x{height}

.json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/9/9a/Gull_portrait_ca_usa.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://upload.wikimedia.org/wikipedia/commons/does-not-exist-404.jpg",
    "https://scrape.ly/",
    "https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg",
    "http://169.254.169.254/latest/meta-data/",
    "not a link"
  ],
  "width": 500,
  "height": 500,
  "fit": "fill",
  "allowUpscale": true,
  "format": "avif",
  "lossless": true,
  "fileNameTemplate": "{index}-{name}-{width}x{height}"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Image up to 500 KB$0.0017One resized or converted file made from a source image of up to 500 KB.
  • Image 10 to 25 MB$0.0102One resized or converted file made from a source image of 10 to 25 MB.
  • Image 2 to 10 MB$0.00425One resized or converted file made from a source image of 2 to 10 MB.
  • Image 500 KB to 2 MB$0.00255One resized or converted file made from a source image of 500 KB to 2 MB.
  • Image 25 to 50 MB$0.02125One resized or converted file made from a source image of 25 to 50 MB.
  • Image 50 to 100 MB$0.051One resized or converted file made from a source image of 50 to 100 MB.

Full pricing

When to use this example

From the Image Resizer & Converter readme:

How long do the download links work?

Each fileUrl and the ZIP link open without an account for 7 days. The files stay in your storage for as long as your plan keeps run results.

Other ways to run Image Resizer & Converter

All examples of Image Resizer & Converter

About Image Resizer & Converter

Resize, crop, convert and compress images in bulk from links, datasets or uploaded files: WebP, AVIF, JPEG, PNG, GIF, TIFF, BMP and ICO, HEIC input, several sizes per image, target file size, EXIF removal and animated GIF/WebP. One row per file with a download link, plus a ZIP of all files.

Price:
$1.70 / 1,000 results
Developer:
Echofield

Image Resizer & Converter pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.