Transformations

Resize, crop, convert, color-correct, blur, rotate, or remove the background, all from the image URL. No re-uploading, no extra storage. Append parameters and each distinct result is cached at the edge worldwide.

On this page

How it works

Every upload and image response includes a url field: a direct CDN link. Append query parameters to transform what it serves.

URL
# The url, untouched
https://test.src.img.pro/4j2/abc12345.jpg

# WebP, 800px wide, a touch brighter
https://test.src.img.pro/4j2/abc12345.jpg?format=webp&w=800&brightness=1.1

One source can produce many cached variants with no per-transform charge. Each distinct URL is cached independently at the edge worldwide, and parameter order doesn’t matter. Unsupported values may be ignored or fall back to the default rendition.

Named sizes

The shortcut: ready-made variants you request with ?size=, no parameters to pick.

size s · m · l · social
A named size preset. s (thumbnails and avatars), m (inline previews and feed cards) and l (full-width hero and detail views) constrain the short side to 320, 640 and 1080px with the aspect ratio preserved: they are the Image’s three sizes. social is a fixed 1200×630 OpenGraph card; any source aspect is padded to fit. A size supplies the base recipe: it can be combined with the other parameters, and explicit query parameters override matching preset fields.
URL
https://test.src.img.pro/4j2/abc12345.jpg?size=m

Format

Convert on the fly. format overrides the extension in the URL path, so …/abc.jpg?format=webp serves WebP even though the path says .jpg.

format jpg · png · webp · avif · gif
Output format, overriding the extension in the path. webp is the best quality-for-size balance (recommended); avif is the smallest; png is lossless with transparency; jpg is universal; gif is for legacy or animation. auto is intentionally unsupported: a cached transform is shared across clients, so it can’t depend on one client’s Accept header.
URL
https://test.src.img.pro/4j2/abc12345.jpg?format=webp

Resize & crop

Resize and crop with explicit dimensions. With the default scale-down fit, images are never enlarged: requesting a larger size is a no-op.

w 1–4096 px
Target width in pixels. Set w or h alone to scale proportionally; set both with fit to control how the image fills the box.
h 1–4096 px
Target height in pixels. Same rules as w.
fit default scale-down
How the image fills w×h: scale-down, contain, cover, crop, pad, squeeze. cover/crop fill and trim; contain/pad letterbox; scale-down never enlarges. An explicit cover/crop/pad will upscale to fill the box.
gravity default auto
Which part to keep when cropping: auto, face, left, right, top, bottom. face centers on detected faces.
zoom 0–1
Crop tightness around gravity=face. 0 = most context, 1 = tight.
URL
# 400×400 square crop centered on faces
https://test.src.img.pro/4j2/abc12345.jpg?w=400&h=400&fit=cover&gravity=face

Quality

Control output quality for lossy formats (JPEG / WebP / AVIF). Accepts a number or a named level.

q 1–100or high · medium-high · medium-low · low
Output quality for lossy formats (JPEG, WebP, AVIF): a number 1–100, or a named level (high≈90, medium-high≈75, medium-low≈60, low≈45). Higher = better and larger; ~80 is a good web default. No effect on PNG: PNG output is always lossless truecolor, so use a lossy format for a smaller file.
URL
https://test.src.img.pro/4j2/abc12345.jpg?format=webp&q=80

Color & tone

Each is a decimal multiplier centered at 1 (no change). Omit a param to leave that channel untouched.

brightness 0–10 · default 1
Multiplier centered at 1 (0 = black, 2 = twice as bright). Useful range ~0.5–2.
contrast 0–10 · default 1
Multiplier centered at 1 (0 = flat mid-gray, >1 = punchier). Useful range ~0.7–2.
gamma 0–10 · default 1
Multiplier (<1 lightens midtones, >1 darkens them; 0 and 1 are both no-ops). Useful range ~0.5–2.5. Direction is opposite to what some editors call “gamma”.
saturation 0–10 · default 1
Multiplier centered at 1 (0 = grayscale, >1 = vivid). Useful range ~0.5–2.

All four are capped at 0–10, but values near the top produce visually useless extremes. Stay inside the “useful range” unless you’re after a specific effect.

URL
# Subtle warmth
https://test.src.img.pro/4j2/abc12345.jpg?brightness=1.1&contrast=1.05&saturation=1.1

# Black and white
https://test.src.img.pro/4j2/abc12345.jpg?saturation=0

Filters

Soften or sharpen detail without re-uploading.

blur 0–250 · default 0
Gaussian blur radius in pixels. 10–20 for a subtle wash, 40+ for a heavy placeholder. Useful for hero overlays and privacy masking.
sharp 0–10 · default 0
Unsharp-mask intensity. 1–3 subtle, 4–6 noticeable, 7+ aggressive (can ring on smooth areas).
URL
# Blurred hero background
https://test.src.img.pro/4j2/abc12345.jpg?blur=15

# Detail boost
https://test.src.img.pro/4j2/abc12345.jpg?sharp=4

Orientation

Rotate, mirror, or trim borders. Rotation at the supported angles involves no resampling; the output is re-encoded in the requested format like any transform (use PNG for a fully lossless result).

rotate 90 · 180 · 270
Clockwise rotation in degrees. Other values are ignored.
flip h · v · hv
Mirror horizontally, vertically, or both.
trim border
Auto-crop a uniform border color around the image (scanned documents, letterboxed screenshots).
URL
# Fix a sideways photo, then mirror it
https://test.src.img.pro/4j2/abc12345.jpg?rotate=90&flip=h

Privacy

We remove common metadata, such as location and camera details, from public images on a best-effort basis. Remove anything sensitive before you upload.

The original, at a URL with no valid transform parameter (download=1 is not one), is the file you uploaded without its common metadata, the same for every request. An original is not re-encoded, so its quality, color profile, EXIF orientation and animation are as uploaded. Anything stored after the end of a JPEG’s image, such as an HDR gain map or a Motion Photo’s video, is removed, so such a photo shows as its standard still image. A HEIC upload is never served as a HEIC: its url ends in .jpg, a converted copy. The file you uploaded is stored unchanged.

Download

Add download=1 to any URL and the browser saves the file instead of showing it. The image is the same as without it.

download 1
With 1, serves the same image as an attachment, so a browser saves it instead of showing it. The original, at a URL with no valid transform parameter, is saved under the name it was uploaded with. A transformed image, a converted format included, is saved as {id}.{ext}: the image’s id and the extension of the format served. Not a transform on its own.
URL
# The original, under the name it was uploaded with
https://test.src.img.pro/4j2/abc12345.jpg?download=1

# Saved as abc12345.webp
https://test.src.img.pro/4j2/abc12345.jpg?w=800&format=webp&download=1

Background

Remove the background with a single param (image segmentation runs on the edge) and optionally fill it with a solid color.

segment foreground
Replace the background with transparency (an edge segmentation model). Add format=png so the alpha channel survives; otherwise the output follows the path extension and JPEG flattens transparency.
background
Fill color for transparent areas: a CSS named color (white, navy), hex (URL-encode # as %23, e.g. %23f5f5f5), or rgb(…)/rgba(…). After segment=foreground it swaps the background; on its own it fills any transparent pixels. Omitted, there is no default: alpha-capable formats stay transparent and others fill white.
URL
# Cutout on a white background (Amazon / Shopify ready)
https://test.src.img.pro/4j2/abc12345.jpg?segment=foreground&background=white&format=jpg

# Transparent PNG cutout
https://test.src.img.pro/4j2/abc12345.jpg?segment=foreground&format=png

Combining transforms

Chain parameters freely: order doesn’t matter, and the CDN runs everything in a single pass.

URL
# Privacy-blurred preview
https://test.src.img.pro/4j2/abc12345.jpg?blur=40

# Faded social card
https://test.src.img.pro/4j2/abc12345.jpg?format=jpg&contrast=0.9&saturation=0.8

# Rotated, sharpened, exported to AVIF
https://test.src.img.pro/4j2/abc12345.jpg?rotate=90&sharp=3&format=avif

Caching & formats

Caching
Each unique URL is cached independently at the edge. A cache miss generates the requested rendition; later matching requests reuse the cached result.
Upscaling
The default scale-down fit never enlarges beyond the source; cover / crop / pad upscale to fill the requested box.
Accepted uploads
An upload is a JPEG, PNG, GIF, WebP, AVIF or HEIC file of at most 20 MB (20,000,000 bytes), and it must decode before anything is stored.
Extensions
A URL’s extension is jpg, jpeg, png, gif, webp or avif, in any case; any other, .heic and .heif included, answers 404. Keep the one in the url the API returns, and use format to convert.
Limits
New transformations of an image may be limited for a while to prevent abuse: the URL then answers 429, and its body says so in one sentence. The image’s named sizes, its original and the versions already made keep working. Use a named size, or write to support@img.pro.
Retired parameters
Retired in spec 4.8.0. fx, strength and tile are no longer transform parameters. A URL that still carries them is served as the same URL without them, as any unsupported parameter is.