Transformation presets
If you wish to apply the same transformations on many images, you can define presets and apply transformations only using the preset name. This will allow you to constuct semantic, SEO-friendly URLs.
p=X
Any resigin operation or image filter can be included in a preset, as well as watermarks, image compression and static file transformation parameters.
Defining presets
Using presets
Sample presets
preset name | operations and filters |
---|---|
gallery_thumb | w=250&h=250&f=gray |
gallery_medium | w=450&h=300&force_format=jpeg&q=85&radius=10 |
Here are a couple of images using the sample presets shown above.
An operation defined in any given preset cannot be overridden in the URL. For example, if a preset named small_img contains w=200, using /v7/original_image_url?p=small_img&w=400 will still yield a 200-pixel-wide image.
Was this page helpful?