Render an image through a stack

The recommended way to render images is through stacks. Using a stack, the rendering instructions are stored centrally and the result can be cached:

curl -X GET 'https://{organization}{stack-name}/{hash}.{format}'

Note: Additional text after the hash is ignored. You can use this for example to add a slug to the image URL for SEO purposes:

curl -X GET 'https://{organization}{stack-name}/{hash}/{slug}.{format}'

Overwriting stack operation options

If you want to overwrite some stack operation options within the URL, you can do that. For example, if you want to have different resize width, but leave the rest as is. It's the same format as mentioned below for dynamically rendering an image. You can also add/overwrite stack options.


Dynamically render an image

You can use the dynamic renderer to specify operations directly in the URL without the need for stacks:


URL Operations are concatenated with double hyphens (--). For example, to do a resize and then a rotate operation, the URL would look like this:


You can also add stack options do a dynamic stack, prefix them with options-, eg:


We recommend using stacks instead of the dynamic renderer for a better reusability of your rendered images.

See operations for the definition of URL operations.