
User defined variables support
Mar 20, 2017
By including user-defined variables in your image transformations, you can assign different values to specific elements of the transformation when you deliver the file.
For example:
- Apply resizing, cropping, and certain special effect transformations to all images, but use a variable for the text overlay element of the transformation, so that each image can be customized.
- Calculate the required width of an overlay based on the evaluation of a condition, and then pass that number as a variable value to the transformation component where the overlay is applied.
- Set certain elements of your Web site profile images, such as size, circular shape, quality, and more, but allow your users to select from special effects and artistic filters to apply.
Until now, goals like these could only be accomplished through a combination of transformation API and your own application code. Now you can do it all within the transformation code.
You can read more about this in our blog post and documentation