This feature will enable users to manually add parameters to the Public sharing URL of image assets to transform the asset on the fly.
To get started, enable the Manual Image Transformations For Public Images setting under Admin > Settings > Resources - Public Sharing.
All image assets that currently support preview generation can be used for transformation. Some restrictions on the type of transformations apply for certain file formats (in particular RAW).
The maximum file size limit supported is 15MB.
Any image that supports preview generation is supported (see full list here), however not for all parameters.
The public URL, which can be retrieved for each asset from the Share / Embed action, will look like this:
The parameters are inserted in replacement of the /original/ part.
You can combine multiple parameters with the character &.
Below is the full list of parameters that are currently supported.
- Extension (ext)
This parameter is to convert the source format to one of the following destination formats.
# Accepted Values: jpeg, jpg, bmp, gif, png
Convert extension to PNG:
The desired extension can also be added to the name portion at the end of the URL.
The size parameter allows to change the original image to a different size. Note that any cropping has to be applied separately (see below).
Resize to 500 width:
Resize to 500 height:
Resize to 500 width x 500 height:
If &ignore is not entered, the closest match with the same aspect ratio as the original will be automatically applied.
Crop (crop & cropgravity)
Note: You are still required to enter the desired pre-crop dimensions if you want to resize the original image before cropping.
Crop 100x100 starting 10 pixels on the right and 10 pixels from the top of top left corner:
Crop 100x100 starting from the center right of the image:
Extent (extentbackground & extentgravity)
Only applies for "jpg", "jpg2", "bpg", "djvu", "djv", "icer", "jbig2", "pgf", "jxr", "hdp", "wdp" formats.
# Accepted Values: 1 to 100 (original quality)
Change quality to 50%
Compression Type (compresstype)
- Color Space (colorspace)
- svg and the majority of RAW formats only support the ext parameter.
- Quality is only support jpg, jpg2, bpg, djvu, djv, icer, jbig, pgf, jxr, hdp, wdp extensions.
- When a parameter is not supported, it will get skipped.
- When a parameter entered is incorrect, an error page will appear.
- The parameters are order sensitive and will be processed successively as inputted in the URL.
ABOUT THE DYNAMIC IMAGE TRANSFORMATIONS ADD-ON
The Dynamic Image Transformations is an optional add-on which needs to be enabled on your platform. The setting comes with a default monthly allowance, which covers 100GB of data transfer, 1000 transformations and 1000 invalidations per month.
Please contact your Customer Success Manager or email@example.com to learn more. You can also submit a request directly from the Helpdesk Center.