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 format.

Example: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9.

Convert images to specified formats


Set the action to format. The following table describes the parameters.
Supported format Description
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.


Example: image_process=format,bmp.