100+ image transformations

Resize, crop, convert, filter, and enhance images with URL parameters or our API.

📐 Resize

Scale images to any dimension with multiple fit modes: cover, contain, fill, inside, outside.

grainlux.com/img.jpg?w=800&h=600&fit=cover

✂️ Crop

Crop images with pixel coordinates, percentages, or smart crop using face/object detection.

grainlux.com/img.jpg?crop=smart&ar=16:9

🔄 Format Conversion

Convert between JPEG, PNG, WebP, AVIF, GIF, TIFF, HEIC, and more. Auto-detect best format.

grainlux.com/img.jpg?format=webp&quality=85

🎨 Filters & Effects

Apply blur, sharpen, grayscale, sepia, brightness, contrast, saturation, and custom filters.

grainlux.com/img.jpg?blur=5&brightness=1.1

💧 Watermark

Add text or image watermarks with configurable position, opacity, and size.

grainlux.com/img.jpg?watermark=logo.png&pos=se

🔲 Background

Remove backgrounds with AI, replace with solid colors, gradients, or other images.

grainlux.com/img.jpg?bg-remove=true&bg=#ffffff

📏 Responsive

Generate srcset-ready image variants with automatic breakpoint detection.

grainlux.com/img.jpg?responsive=true&sizes=320,640,1024

🔁 Rotate & Flip

Rotate by any angle, flip horizontally or vertically, auto-orient from EXIF data.

grainlux.com/img.jpg?rotate=90&flip=h

Advanced Transforms

Chain multiple transformations together for complex image workflows.

Chained Transformations

Combine multiple operations in a single request. Transformations are applied in order, giving you full control over the output.

  • ✓ Chain unlimited transforms
  • ✓ Named transform presets
  • ✓ Conditional transforms based on input
  • ✓ Cached at every stage
// Chain multiple transforms const result = grainlux.transform('photo.jpg') .resize(1200, 800) .crop('smart') .format('webp') .quality(85) .sharpen(0.5) .watermark('logo.png') .deliver();

Try transforms in the playground

Experiment with all transformations in our interactive playground.

Open Playground