By default, Dexecure automatically chooses the right format for each image depending the browser requesting the image, if the original image is transparent, etc.
The following formats are enabled by default and require no extra configuration
JPEG
PNG
WebP
JPEGXR
You can explicitly mention this by setting ?format=all in the URL
https://your-dexecure-domain.com/fluffy-kitten.jpg?format=all
Dexecure also supports the JPEG2000 format. Contact us to enable this feature and you would need to use a picture tag to support this format.
<picture>
<source srcset="https://yourdexecuredomain.com/sale/image.jpg?supportjp2=1" type='image/jp2'>
<img src="https://yourdexecuredomain.com/sale/image.jpg" />
</picture>
Dexecure is also able to handle HEIF image uploads and automatically convert images to a format which browsers support.
In case you do not want Dexecure to change the format of the image to browser-specific formats like Webp, JPEGXR, etc, you can pass in the ?format=basic parameter. In this mode, Dexecure will only send images formats which are widely supported like JPEG and PNG.
https://your-dexecure-domain.com/fluffy-kitten.jpg?format=basic
Low quality image placeholders (LQIP) can be generated for your images automatically. This is a good way to generate low quality thumbnails for your images automatically by just adding ?format=lqip to the URL. These can be downloaded much faster than the original image due to their small size and can be shown as a placeholder till the original image downloads.
https://your-dexecure-domain.com/fluffy-kitten.jpg?format=lqip
Configure the behaviour of Dexecure via URL Query Parameters