Caisy has a build in Asset CDN for all your assets. They are cached for you all over the world on the edge. Further you can use the URL parameters to dynamically resize the images or change the format.
If you are inside a image you can get the image url by hitting the download button.
The base URL of the image might look like this:
https://assets.caisy.io/assets/24f83c2f-4d07-4666-84ca-420f9ab91dec/519eb852-8fd2-4b31-8dcc-1c2217f71b7f/db8c2d70-e1a0-44c7-a4c7-a1e3c85cf261b8552817fb18469ca06cc1b7da705c37dold1955.jpg
which will return the image in to uploaded size but convert it from jpg to WEBP if the browser does support it, based on the http headers.
If you want to have the image cropped to a certain width you can add the following to the url ?w=200
https://assets.caisy.io/assets/24f83c2f-4d07-4666-84ca-420f9ab91dec/519eb852-8fd2-4b31-8dcc-1c2217f71b7f/db8c2d70-e1a0-44c7-a4c7-a1e3c85cf261b8552817fb18469ca06cc1b7da705c37dold1955.jpg?w=200
Same works for height (h
) for example h=200
and you can also use both in combination like so w=100&h=100
further you can define the quality of the image with q
. For example q=80
. The default quality is 99.
If you want to force the image api to return a specific image format you can use paramter f
for this. Example for webp f=webp
https://assets.caisy.io/assets/24f83c2f-4d07-4666-84ca-420f9ab91dec/519eb852-8fd2-4b31-8dcc-1c2217f71b7f/db8c2d70-e1a0-44c7-a4c7-a1e3c85cf261b8552817fb18469ca06cc1b7da705c37dold1955.jpg?w=200&f=webp
Supported formats are webp
, jpg
and png