Parameters
Parameter reference
Width of the output image in pixels.
w_800 · w_1920 · w_400Height of the output image in pixels.
h_600 · h_1080 · h_400How the image is resized and cropped.
| Value | Behavior |
|---|---|
fill | Fill the area, cropping the overflow (default) |
fit | Fit within dimensions, preserving aspect ratio |
scale | Stretch to exact dimensions (distorts if ratios differ) |
crop | Resize and crop to exact dimensions |
pad | Fit and add background-colored borders |
Crop the image to a specific aspect ratio. Format:
W:H.ar_16:9 · ar_1:1 · ar_4:3Rotate the image. Use
auto to rotate based on data, or a number (0–360) for a fixed angle.a_auto · a_90 · a_180Focal point used when cropping.
| Value | Behavior |
|---|---|
center | Center of the image (default) |
north | Top edge |
south | Bottom edge |
east | Right edge |
west | Left edge |
face | Face detection — keeps the detected face in frame |
auto | Entropy-based region of interest detection |
Background color for
c_pad or rotated images. Use rgb: followed by a 6-digit hex value.b_rgb:ffffff (white) · b_rgb:000000 (black) · b_rgb:f5f5f5 (light gray)Compression quality from 1 (smallest file) to 100 (highest quality).
| Range | Trade-off |
|---|---|
| 90–100 | High quality, larger file |
| 80–89 | Recommended sweet spot |
| 60–79 | Smaller file, slight quality loss |
| 1–59 | Aggressive compression, visible artifacts |
Force a specific output format. When omitted, the best format is chosen automatically based on the browser’s
Accept header.| Value | Notes |
|---|---|
avif | Best compression (up to 50% vs JPEG) |
webp | Excellent compatibility, ~30% vs JPEG |
jpeg / jpg | Universal fallback |
png | Lossless, supports transparency |
Examples
- Resize
- Smart crop
- Aspect ratio
- Format
Instagram portrait
Instagram portrait
Padded thumbnail
Padded thumbnail
Rotated PNG (with transparency)
Rotated PNG (with transparency)
Full HD AVIF
Full HD AVIF
Supported formats
Input: JPEG, PNG, WebP, AVIF, GIF (first frame), HEIC/HEIF (converted to JPEG on upload), PSD (layers composited) Output: AVIF, WebP, JPEG, PNGNext steps
Automatic Format Selection
How Openinary picks the optimal format automatically.
Upload & Cache Warming
Pre-generate variants at upload time for instant first response.