In the asset details view, you can find the download button on the right side. Clicking on it will reveal the image URL, which you can use to directly access the image through the Asset CDN. The Asset CDN supports on-the-fly resizing and format optimization to deliver the best possible image to your users, no matter where they are located. Additionally, the assets are cached at the edge for fast and efficient delivery.
The base URL of the image might look like this:
The base URL will return the image in its original size, but it will be converted to WEBP if the browser supports it, based on the HTTP headers
If you want to crop the image to a specific width, you can add the following to the URL:
If you want to crop the image to a certain height (
h), you can add
h=200 to the URL.
Additionally, you can use both width and height by specifying
To control the quality of the image, you can specify the
q parameter, such as
q=80. The default quality is 99.
Our image API automatically detects if your browser supports the WebP image format by inspecting the Accept HTTP header. If WebP support is detected, the API will return images in the WebP format, automatically converting them from JPEG or PNG formats. This ensures optimal image quality with reduced file sizes, resulting in faster page load times and improved user experience.
Our image API currently supports resizing for the following formats: JPEG, PNG, GIF, and WebP. When you request a resize operation for an image in one of these formats, the API will process the request and return the resized image accordingly. However, if the image is in a format other than those listed, the API will ignore the resize operation and return the file in its original, as-uploaded state. This ensures that unsupported formats remain intact and unaltered, providing a consistent user experience across various content types.