Image processing allows you to edit and distribute images on points of presence (POPs). This reduces loads on origin servers and origin traffic. The image processing features provided by ApsaraVideo VOD and Object Storage Service (OSS) are independent from each other. You can use either feature to process images. ApsaraVideo VOD allows you to automatically convert images to the WebP format and automatically rotate and compress images.
Limits
- Limits on base images
- Only the following image formats are supported: JPEG, PNG, WebP, BMP, GIF, TIFF, and JPEG 2000.
- The size of a base image cannot exceed 10 MB.
- The total pixels of a base image cannot exceed 16,777,216 pixels. Note If a base image is in GIF format, the product of height times width is the sum of all frames. You can use tools such as ImageMagick to view the frames of GIF images.
- Limits on edited images
- The total pixels of an edited image cannot exceed 16,777,216 pixels.
- If you want to convert an edited image to the WebP format, the total pixels of the image cannot exceed 16,777,216 pixels. The width or height cannot exceed 16,384 pixels. If a base image is a dynamic image, a static image is generated when you convert the base image to the WebP format.
Procedure
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Configuration Management > CDN Configuration > Domain Names. The Domain Names page appears.
On the Domain Names page, find the domain name that you want to manage and click Configure in the Actions column.
On the page that appears, click Performance Optimization.
- In the Image Editing section, turn on Image Editing and configure the parameters as prompted. The following table describes the parameters.

Parameter Description Supported Image Formats The image formats that you want to convert. You can select multiple formats. Note The following image formats are supported: JPEG, PNG, WebP, BMP, GIF, TIFF, and JPEG 2000.Automatic Conversion to WebP After you turn on Automatic Conversion to WebP, images in other formats are automatically converted to the WebP format. Important After you turn on Automatic Conversion to WebP, the cache hit ratio decreases within a short period of time and is gradually restored after images are converted. Do not enable this feature during peak hours.Automatic Rotation After you turn on Automatic Rotation, images are automatically rotated to a proper orientation. Note- Automatic rotation applies only to images that have orientation properties.
- After you turn on Automatic Rotation, the cache hit ratio decreases within a short period of time and is gradually restored after images are rotated. Do not enable this feature during peak hours.
Automatic Compression Automatic compression reduces the file size of images without the need to change the resolution, size, and format of the images. This reduces data transfer. Default value: 0. Valid values: - 0: Auto compression is disabled.
- 1 to 100: Auto compression is enabled. For example, if you enter 90% in the Automatic Compression field, the quality of the image is changed to 90% of the original quality.
Note Automatic compression supports only images in the JPEG and WebP formats. Click OK.