Skip to content

Perfect images at every size

Resize, crop, and convert images on-the-fly via URL transforms. WebP, AVIF, and automatic format selection. Cached globally for instant delivery.

WebPAVIFSmart CropGlobal CDN
import { Stack0 } from '@stack0/sdk'
const stack0 = new Stack0({ apiKey: process.env.STACK0_API_KEY })
// Upload an image
const { url } = await stack0.cdn.upload({
file: imageFile,
folder: 'products',
})
// Transform via URL parameters
const thumbnail = `${url}?width=200&height=200&fit=cover`
const webp = `${url}?format=webp&quality=80`
// Or use the SDK for programmatic transforms
const optimized = stack0.cdn.transform(url, {
width: 1200,
height: 630,
fit: 'cover',
format: 'webp',
quality: 85,
})

What's included

Resize & Crop

Width, height, fit modes. Cover, contain, fill, and smart crop options.

Format Conversion

WebP, AVIF, PNG, JPEG. Auto-select best format for each browser.

Quality Control

Balance quality and file size. Compression you can fine-tune.

Effects

Blur, sharpen, grayscale, and more. Image effects via URL.

Global Cache

Transforms cached at 200+ edge locations. Fast everywhere.

Instant Processing

First request transforms in milliseconds. Subsequent requests served from cache.

Built for production

URL transforms

Add parameters to any image URL. No preprocessing or build steps required.

Modern formats

Automatic WebP and AVIF conversion. Smaller files, faster loads.

Global CDN

Transformed images cached at edge locations worldwide. Sub-100ms delivery.

Responsive images

Generate srcset variants on demand. Perfect images for every device.

Smart cropping

Face detection and smart crop for thumbnails that focus on what matters.

Simple pricing

$0.50 per 1,000 transforms. Cached results served free.

Common implementations

Responsive Images

Serve perfectly sized images for mobile, tablet, and desktop.

Thumbnails

Generate product thumbnails, avatars, and gallery previews on demand.

Social Sharing

Create properly sized images for Twitter, Facebook, and LinkedIn.

E-commerce

Product images optimized for listings, detail pages, and zoom views.

Frequently asked questions

Ready to build?

Get started in minutes.

Get Started