-/inline/yes/
-/inline/no/
Core operations
When processing images, add at least one of the following operations
via their respective URL directives:
resize
smart_resize
scale_crop
preview
Output image dimensions
The dimensions you specify for the last operation should not exceed 3000x3000
pixels. You can go up to 5000x5000 pixels by explicitly setting
your image format
to JPEG, cdn›/format/jpeg/
.
You can extend the output max resolution up to 8192x8192, and up to 16384x16384
for JPEGs in trade-off for increased latency. Contact sales to learn more
about this option.
SVG files
Any image transformation CDN URL is valid with an SVG file. Most operations
don't affect the response SVG body, while geometric operations
(crop
, preview
, resize
, scale_crop
) change SVG attributes and work as expected.
To apply full range of operations on SVG file, it should be rasterized by
applying -/rasterize/
operation.
Note: Operation is safe to apply to any image. Not SVG images won't be
affected by this operation.
SVGs uploaded before May 26, 2021 still have is_image: false
and adding
processing operations to them will result in error. Contact
support to batch process previously uploaded files.
Image resolution
We don’t provide on-the-fly image processing for images greater than
75 Mpx in resolution: those are tagged as non-image files and can only be delivered
via CDN as-is. Adding processing operations to non-image files will result
in an error.
Simple rotation
When the only image transformation you want is rotating, consider using the
preview
control without any arguments. When you use any of the transformations, we
automatically rotate images according to their EXIF orientation.
Animated images
Animated images are treated as static by the transformations engine, consider
checking out our GIF to Video
workflow optimized for animated images delivery.
REST API image processing
Most image processing operations work on-the-fly,
except some that must be called via REST API:
Background removal
Object recognition
Video and document thumbnail generation