This is the core Openinary endpoint. The first request processes and caches
the result; subsequent requests are served from cache in ~50ms.
Endpoint
Path parameters
Comma-separated transformation parameters. Omit this segment (or use
t/) to serve the original file without transformations.w_800,h_600,c_fill,q_85,f_webpPath to the file relative to the storage root, including the file extension.
image.jpg · photos/portrait.png · videos/clip.mp4Image parameters
Quick reference
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.
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.
Background color for
c_pad (padding fill), a_<angle> (rotation fill), and r_<radius> (corner fill). Use rgb: followed by a 6-digit hex value.b_rgb:ffffff (white) · b_rgb:000000 (black) · b_rgb:f5f5f5 (light gray)Rounds the corners of the image using an SVG alpha mask.
r_80 · r_20:80 · r_20:0:40:60 · r_maxBy default, cut corners are transparent, use f_png, f_webp, or f_avif. Add b_rgb:<hex> to fill corners with a solid color and use any format including JPEG.Radius is clamped to half the shorter dimension. Round corners are not supported for video.
Compression quality from 1 (smallest file) to 100 (highest quality).
Force a specific output format. When omitted, the best format is chosen automatically based on the browser’s
Accept header.Image 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
Circular avatar
Circular avatar
f_png or f_webp to preserve the alpha channel, or add b_rgb:<hex> to fill corners with a solid color.Rounded card image
Rounded card image
Supported image formats
Input: JPEG, PNG, WebP, AVIF, GIF (first frame), HEIC/HEIF (converted to JPEG on upload), PSD (layers composited) Output: AVIF, WebP, JPEG, PNGVideo parameters
Quick reference
Parameter reference
Width of the output video in pixels.
w_1920 (1080p) · w_1280 (720p) · w_640 (SD)Height of the output video in pixels.
h_1080 · h_720 · h_480 · h_360Resize/crop strategy. Requires
w/h.Extracts a single frame as an image thumbnail instead of transcoding the video. When enabled, the output is an image format (
jpg, png, webp, etc., set via f) rather than a video.t_trueTime in seconds to extract the thumbnail frame from. Only applies when
t is enabled.tt_5.5 · alias: thumbnail_timeVideo quality via encoding. Range: 1–100.
Start time in seconds. Used for trimming (with
eo) or thumbnail extraction (with an image f).so_5 · so_10.5End time in seconds. Must be used together with
so. The output duration is eo − so.so_5,eo_12 → 7-second clipThe end offset is exclusive:
so_5,eo_12 produces a clip from 5s to 12s (7 seconds).Output format. Defaults to
mp4 (H.264). When combined with so and without eo, extracts a single frame as an image.Video examples
- 720p HD
- Trim
- Thumbnail
- Mobile preview
Trim and resize
Trim and resize
High-quality presentation
High-quality presentation
Supported video formats
Input: MP4 (H.264/H.265), MOV, WebM (VP8/VP9) Output: MP4 (H.264), standardized for maximum device and browser compatibilityResponse
Returns the binary content of the transformed file.
Status codes:
200 success · 404 file not found · 500 processing error
Related
Authenticated Transform
Signed URLs for restricted transformations.
Upload Files
Upload files and pre-generate variants.
Intelligent Compression
How Openinary picks the optimal format automatically.