Dynamic Route for CDN (DCDN) can automatically convert image formats to WebP and convert image formats to a specified format. You can convert images that are stored on DCDN nodes to specified formats by using conversion parameters. This topic describes how to convert image formats and provides examples of this feature.
- This feature is in private preview. To participate in the private preview, submit a ticket.
- This feature is free of charge during the private preview. After it is officially released, it charges fees. For more information, see the product updates.
Automatically convert images to WebP
DCDN determines whether to convert images in a response to the WebP format based on
the Accept header in the request. If
image/webp is included in the request header, images in the response are converted to the WebP
Convert images to specified formats
format. The following table describes the parameters.
|JPEG||Converts base images to the JPG or JPEG format.|
|PNG||Converts base images to the PNG format.|
|WEBP||Converts base images to the WebP format.|
|BMP||Converts base images to the BMP format.|
|GIF||Converts base images to the TIFF format.
Note GIF images are animated. If you convert a GIF image to another format, the image is no longer animated and becomes static.
|TIFF||Converts base images to the TIFF format.|
|JPEG 2000||Converts base images to the JPEG 2000 format. The suffix of the names of the JPEG 2000 images is JP2.|