Skip to main content
Saves a named transform. Apply it anywhere with {"preset": key} — and change it later without touching the URLs that use it.

Signature

Returns

Using it

Change the preset later and every URL using it follows — which is the point of naming a transform rather than repeating it.
A preset must include a format. Preset keys may only contain lowercase letters, digits and underscores, so thumb_2x is valid and Thumb-2x is not.

Errors