Skip to content
//Image Upscaler & Background Remover example\\

Product shots on white, cropped and 2x

Products cut out, put on a white background, cropped tight with padding and made twice as large, as JPEG.

Updated November 12, 2026

What this example returns

The dataset’s “Processed images” view shows 14 columns: Result, Width, Height, MP, Format, Bytes, Operation, Scale, Background removed, Source, Source width, Source height, Note, and Error. See every output field.

What each setting does

The input this example runs Image Upscaler & Background Remover 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/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG, https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/330px-Camponotus_flavomarginatus_ant.jpg

Direct links to the images, one per line: JPEG, PNG, WebP, GIF (first frame), AVIF, HEIC/HEIF, TIFF or BMP, up to 60 MB and 50 megapixels each. Google Drive, Dropbox and GitHub share links are turned into download links automatically. Every image gives one result row. You can also (or instead) take images from a…

What to do operation

Remove background and upscale

Upscale the image, remove its background, or both (the background is removed first, then the cut-out is upscaled).

Default: Upscale → this example uses Remove background and upscale

Upscale factor scale

2x

How much larger the result is in each direction: 2x turns 500x375 into 1000x750, 4x into 2000x1500. The aspect ratio is always kept. Results are kept within 32 megapixels per image (the size a stored file and a 4 GB run can hold), so very large sources are enlarged less and the row's note says so.

New background colour backgroundColor

white

Leave empty for a transparent background. Or give a colour to put behind the subject: white, #ffffff, #f5f5f5, rgb(240,240,240) and so on. JPEG results without a colour get white.

Crop to the subject cropToSubject

Yes

Cut away the empty area around the subject after removing the background.

Default: No → this example uses Yes

Padding around the subject (pixels) cropPadding

20

Space kept around the subject when cropping, in pixels of the source image.

Default: 0 → this example uses 20

Output format outputFormat

JPEG

PNG is lossless and keeps transparency. WebP keeps transparency in a much smaller file. JPEG is smallest but has no transparency.

Default: PNG → this example uses JPEG

WebP / JPEG quality quality

90

1 to 100. Higher is sharper and larger. PNG ignores it.

.json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/A_small_cup_of_coffee.JPG/500px-A_small_cup_of_coffee.JPG",
    "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/330px-Camponotus_flavomarginatus_ant.jpg"
  ],
  "operation": "both",
  "backgroundColor": "white",
  "cropToSubject": true,
  "cropPadding": 20,
  "scale": "2",
  "outputFormat": "jpeg",
  "quality": 90
}

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 upscaledfrom $0.0102One image upscaled and saved, for source images up to 2 megapixels; larger sources count one more per started 2 megapixels. Failed images are free.
  • Background removedfrom $0.00595One image with its background removed and saved (transparent, coloured or cropped cut-out, with the optional mask). Failed images are free.

Full pricing

Other ways to run Image Upscaler & Background Remover

All examples of Image Upscaler & Background Remover

About Image Upscaler & Background Remover

Upscale images 2x to 4x with Real-ESRGAN and remove backgrounds with BiRefNet: sharper photos and illustrations, transparent PNG cut-outs, white or coloured backgrounds, crop to subject and masks. Links, datasets or uploaded files; one row per image with a download link.

Price:
from $10.20 / 1,000 results
Developer:
Echofield

Image Upscaler & Background Remover 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.