Documentation Index
Fetch the complete documentation index at: https://autorender.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AutoRender includes several automatic features that optimize image delivery without requiring explicit configuration. These features work behind the scenes to ensure optimal performance, proper transformation ordering, and device-appropriate image sizes.Automatic Width Bucketing
AutoRender automatically rounds width values to predefined buckets to improve cache efficiency and reduce storage overhead. When you specify a width, AutoRender rounds it up to the nearest bucket size.Width Buckets
AutoRender uses the following width buckets:- 320px - Ultra-small mobile devices
- 480px - Small mobile devices
- 720px - Standard mobile devices
- 1080px - Tablets and high-resolution mobile devices
- 1440px - Desktop displays
- 1920px - Large desktop displays
How It Works
When you specify a width value, AutoRender automatically rounds it up to the nearest bucket: Request:w_500 → Automatically rounded to w_720:
w_1500 → Automatically rounded to w_1920:
w_1080 → Stays at w_1080 (already a bucket size):
Width bucketing only applies when you explicitly specify a width. If you use preset tokens or aspect ratios, the bucketing behavior may differ.
Automatic Default Width Detection
When no width, height, or aspect ratio is specified in your transformation URL, AutoRender automatically adds an appropriate default width based on the requesting device.Device Detection
AutoRender analyzes theUser-Agent header and Save-Data header to determine the optimal default width:
| Device Type | Default Width |
|---|---|
| iPhone | 1080px |
| High-end Android (Samsung, Pixel, OnePlus) | 1080px |
| iPad / Android Tablets | 1080px |
| Desktop (Mac, Windows, Chrome OS) | 1080px |
| Standard Android | 720px |
| Mobile Browsers (Opera Mobile, Edge Android, Firefox Android) | 720px |
| Opera Mini / UC Browser / KaiOS | 480px |
| Save-Data mode (mobile) | 480px |
| Default fallback | 720px |
Examples
No width specified - AutoRender adds device-appropriate width: iPhone request → automatically becomesw_1080:
w_1080:
w_480:
Automatic Transformation Ordering
AutoRender automatically orders transformation parameters to ensure they are applied in the correct sequence. This guarantees consistent results regardless of the order you specify parameters in your URL.Transformation Order
Transformations are applied in this order:- Crop mode (
c_*) - Aspect ratio (
ar_*) - Width (
w_*) - Height (
h_*) - Position (
p_*) - Zoom (
z_*) - Flip (
flip_*) - Rotation (
r_*) - Border radius (
br_*) - Background (
bg_*) - Format (
f_*) - Quality (
q_*)
Effects Order
Image effects are applied in this order:- Auto improve (
e_improve) - Unsharp mask (
e_unsharp_mask) - Saturation (
e_saturation) - Contrast (
e_contrast) - Brightness (
e_brightness) - Gamma (
e_gamma) - Sharpen (
e_sharpen) - Grayscale (
e_grayscale) - Black & white (
e_blackwhite)
Example
These URLs produce identical results due to automatic ordering: Parameter order: quality, width, crop:c_crop,w_720,q_80
AutoRender ensures transformations are always applied in the optimal order, so you don’t need to worry about parameter sequence in your URLs.
Preset Tokens
AutoRender supports preset tokens (t_*) that allow you to store and reuse common transformation combinations. When you use a preset token, AutoRender automatically expands it to the full transformation string.
How Presets Work
Preset tokens are stored per tenant and can be referenced in transformation URLs: Using a preset token:c_fill,w_200,h_200,p_c
Equivalent to:
URL Canonicalization
AutoRender automatically canonicalizes transformation URLs to ensure consistent caching and optimal performance. This includes:- Parameter normalization: Removes duplicate parameters, normalizes values
- Encoding: Properly encodes special characters in paths and values
- Ordering: Applies transformation ordering rules
- Formatting: Standardizes parameter format
Benefits
- Better caching: Identical transformations produce identical URLs
- Consistent results: Same transformations always produce the same output
- Performance: Optimized URL structure for faster processing
Automatic Save-Data Support
AutoRender respects theSave-Data HTTP header, which indicates that the user prefers reduced data usage. When this header is present, AutoRender automatically:
- Reduces default width to 480px (instead of device-specific defaults)
- Optimizes for lower bandwidth consumption
Example
Request with Save-Data: on header. Mobile device that would normally getw_720 is automatically reduced to w_480:
Best Practices
When to Rely on Automatic Features
- Responsive images: Let AutoRender choose appropriate sizes for different devices
- Quick prototypes: Use default widths during development
- Consistent transformations: Rely on automatic ordering for complex transformations
When to Specify Explicitly
- Precise dimensions: When you need exact pixel dimensions
- Performance-critical: When you want to control cache behavior
- Brand consistency: When specific sizes are part of your design system
Optimization Tips
- Use bucket sizes: Specify widths that match bucket sizes (320, 480, 720, 1080, 1440, 1920) for optimal caching
- Leverage presets: Create presets for commonly used transformations
- Trust the ordering: Don’t worry about parameter order - AutoRender handles it
- Test on devices: Verify automatic width detection works as expected for your use case
Examples
Example 1: Automatic Width for Responsive Images
Example 2: Width Bucketing in Action
Request withw_650 automatically rounded to w_720:
Example 3: Automatic Ordering
Parameters in any order - AutoRender reorders automatically:c_fill,w_800,h_600,q_80