URL-based image and video transformations with intelligent optimization. Resize, crop, convert formats, and deliver pixel-perfect media through our global CDN — all with a single API call.
Trusted by 100,000+ developers and leading brands worldwide
Apply dozens of transformations by modifying the URL. No SDKs required — works with any HTTP client, img tag, or CDN.
w_800,h_600,c_fill
Intelligently resize images while preserving the subject. Content-aware cropping keeps faces and key elements in frame.
c_crop,g_face,ar_1:1
Crop to any aspect ratio with gravity detection. Auto-detect faces, objects, or custom focal points for perfect framing.
f_auto,q_auto
Automatically serve the best format (WebP, AVIF, JPEG XL) based on browser support. Zero configuration needed.
q_auto:best
Perceptual quality optimization finds the smallest file size with no visible quality loss. Save 60-80% bandwidth automatically.
Every transformation is a URL parameter. Chain them together for complex pipelines — no SDK installation required.
https://api.grainlux.com/v1/transform/w_800,h_600,c_fill,f_webp,q_auto,e_sharpen/product-hero.jpg
Our customers see dramatic improvements in Core Web Vitals, bandwidth costs, and user engagement after switching to GrainLux.
Automatic format selection and quality optimization dramatically reduce file sizes without visible quality loss.
Responsive images served from 300+ edge locations ensure your hero images load in milliseconds, not seconds.
Intelligent caching across 300+ PoPs means transformations are computed once and served from edge forever after.
GrainLux analyzes each image and browser to deliver the optimal format. See the difference for yourself.
| Format | File Size | Reduction | Quality Score | Browser Support | Best For |
|---|---|---|---|---|---|
| JPEG | 4.2 MB | Baseline | 100% | Legacy compatibility | |
| PNG | 8.1 MB | +93% | 100% | Transparency, lossless | |
| WebP | 1.1 MB | -74% | 97% | General web use | |
| AVIF | 620 KB | -85% | 92% | Maximum compression | |
| JPEG XL | 580 KB | -86% | 35% | Future standard |
With f_auto, GrainLux automatically serves AVIF to supported browsers, WebP as fallback, and JPEG for legacy — zero configuration required.
Native SDKs, plugins, and integrations for every major framework, CMS, and e-commerce platform.
From e-commerce product shots to social media assets, GrainLux handles billions of transformations across every industry.
Auto-generate thumbnails, zoom views, and responsive variants for every product. Background removal, color correction, and watermarking built in.
One upload, every platform. Automatically generate correctly-sized variants for Instagram, Twitter, LinkedIn, TikTok, and more.
Accept uploads from users, automatically moderate for safety, optimize for web delivery, and serve through our CDN — all in one pipeline.
Clean REST APIs, comprehensive SDKs, and URL-based transformations that work everywhere — from server-side rendering to static HTML.
// Simple URL structure — works in any <img> tag
https://api.grainlux.com/v1/transform/
w_400, // Width: 400px
h_300, // Height: 300px
c_fill, // Crop: fill mode
g_auto, // Gravity: auto-detect subject
f_auto, // Format: best for browser
q_auto // Quality: perceptual auto
/products/shoe-red.jpg
// Chain multiple transformations
https://api.grainlux.com/v1/transform/
w_800,h_600,c_fill/
e_sharpen:80/
o_watermark,g_southeast/
uploads/hero-banner.png
300+ edge locations worldwide. No setup, no configuration — just use the URL and images are cached globally.
Generate srcset and sizes automatically. Serve the perfect resolution for every device and viewport.
Prevent URL tampering with HMAC-signed transformation URLs. Control exactly which transformations are allowed.
Get notified when uploads complete, transformations finish, or moderation flags content. Build reactive pipelines.
Generous free tier for developers. Predictable pricing that scales with your media volume.
Perfect for side projects and prototyping
For growing teams and production apps
For large-scale media operations
Join 100,000+ developers who deliver optimized images and videos with GrainLux. Start with 25GB free — no credit card required.