Real-Time Image Transformations

Resize, crop, convert, watermark, and apply AI effects to any image — just by changing the URL. Powered by libvips for sub-50ms processing, cached at the edge for instant delivery.

Core Operations

Every transformation starts with an operation in the URL path that determines how the image is sized.

OperationURL PatternDescription
cover/cover/600x400/Resize & crop to exact dimensions
width/width/800/Resize to width, height scales proportionally
height/height/600/Resize to height, width scales proportionally
cdn/cdn/Passthrough — auto-rotate, compress, serve

14 Crop Modes

Control exactly how the crop region is selected. Append a mode after cover:

🧠

attention / smart

Content-aware crop targeting the most visually interesting region — highest luminance and saturation.

📊

entropy

Shannon entropy-based crop — focuses on the region with the most visual complexity.

👤

face

ML-powered face detection — keeps detected faces in frame with configurable padding.

📐

contain

Fits image inside dimensions with padding. Combine with solid colours, gradients, or grid patterns.

🎯

focal point

Precise control with fp-x, fp-y, fp-z — position the crop center anywhere from 0.0 to 1.0.

⬆️

directional

10 directional modes: north, south, east, west, northeast, northwest, southeast, southwest, center, inside.

Auto Format & Quality

Serve the optimal format for every browser automatically. Image Foundry reads the Accept header and negotiates: AVIF → WebP → Original. The Vary: Accept header ensures CDN caches separate copies per format.

# Automatic — best format per browser
/my-images/width/800/format:auto/photo.jpg

# Explicit format
/my-images/width/800/format:avif,quality:60/photo.jpg
/my-images/width/800/format:webp,lossless:true/photo.jpg
OptionValuesDescription
formatauto, jpg, png, webp, avif, tiff, gif, svgOutput format
quality1–100Compression quality (default 80)
losslesstrueLossless WebP/AVIF encoding
progressivetrue/falseProgressive JPEG/PNG
dpr1–3Retina — multiplies dimensions (dpr:2 = 2× output)

Watermarks & Text Overlays

Composite logos, watermarks, and rendered text directly onto images — no pre-processing required.

# Watermark in the bottom-right corner
/my-images/width/800/wmk-path:%2Flogo.png,wmk-position:southeast,wmk-pad:15,wmk-opacity:80/photo.jpg

# Text overlay with drop shadow
/my-images/width/800/txt:Free%20Shipping,txt-size:48,txt-color:ffffff,txt-position:south,txt-shad:2/photo.jpg

20 pre-installed Google Fonts (Roboto, Inter, Poppins, etc.) plus custom .ttf/.otf font support.

AI-Powered Features

✂️

Background Removal

TensorFlow.js-powered automatic background removal. Replace with solid colour, add drop shadow, control feathering.

👁️

Face Detection

Detect faces and return bounding boxes as JSON. Apply privacy blur or pixelation automatically.

🔒

Face Privacy

One parameter to blur or pixelate all detected faces — faceblur:10 or facepixel:15.

More Capabilities

FeatureExample
Region extractionextract-top:100,extract-left:50,extract-width:400,extract-height:300
Padding & borderspad:20,fill-color:ffffff · border:5,ff0000
Rounded corners & maskscorner-radius:20 · mask:ellipse
Image blendingblend-img:%2Ftexture.png,blend-mode:overlay,blend-alpha:50
PDF page renderingpage:3 — renders specific page from PDF/multi-page TIFF
Colour palette extractionpalette:json,colors:8 or palette:css
SVG sanitizationAutomatic script/event handler removal for uploaded SVGs
Animated GIF/WebPanimation:true (default) or animation:false to flatten

Transform Your First Image in 60 Seconds

No SDK required — just change the URL.

Get Started Free Read the Docs