Presets
Save combinations of commonly used parameters in presets
Last updated
Save combinations of commonly used parameters in presets
Last updated
Copyright © 2023 Scaleflex
p=X
If you wish to apply the same transformations on many images, you can define presets and apply transformations only using the preset name (X).
All Image operations and Image filters can be included in a preset, as well as Image watermarking and Image compression parameters.
You can define your presets in the admin panel, Image Settings / Presets.
gallery_thumb
w=250&h=250&gray=1
gallery_medium
w=450&h=300&radius=10&force_format=jpeg&q=85
gallery_large
w=1200&force_format=jpeg&optipress=2&wat=1&wat_gravity=northwest&wat_scale=60&wat_pad=20&wat_opacity=0.4
Here are a couple of images using the sample presets shown above.
You can use additional operations together with a preset. Here is an example:
red_ref_number
w=400&h=200&wat=1&wat_gravity=northeast&wat_pad=10&wat_font=Arial-Black&wat_fontsize=18&wat_colour=660000
Here are a couple of examples of how you can extend the presets from above:
Please note that 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 /original_image_url?p=small_img&w=400 will still yield a 200-pixel-wide image.