After you enable image editing, Alibaba Cloud CDN can resize, crop, or rotate the images that are distributed by the service. Image editing reduces the number of back-to-origin requests and accelerates content delivery. This topic describes how to enable and configure image editing.
Note Image editing is a paid service. It is currently free of charge until further notice.
This topic consists of the following sections:
Features
- You can enable automatic conversion to WebP, automatic rotation, and automatic compression in the Alibaba Cloud CDN console. For more information, see Enable image editing in the Alibaba Cloud CDN console.
- Alibaba Cloud CDN supports a wide range of image editing features. For more information, see Image editing parameters. You can add parameters to request URLs for image editing. For more information, see Customize image editing.
Enable image editing in the Alibaba Cloud CDN console
You can enable automatic conversion to WebP, automatic rotation, and automatic compression in the Alibaba Cloud CDN console.
Customize image editing
You can add parameters to request URLs to customize image editing.
Image editing parameters
Alibaba Cloud CDN allows you to add one or more image editing parameters to a request
URL. The following table describes the image editing parameters.
Feature | Parameter | Description |
---|---|---|
Convert image formats | format | Converts images to specified formats. |
Adjust image quality | quality | Changes the quality of images. |
Crop images | crop | Crops images. |
Resize images | resize | Resizes images. |
Rotate images |
|
Rotates images based on the orientation properties or rotates images clockwise based on the angle that you specify. |
Change the color of an image |
|
Adjusts the brightness, contrast, and sharpness of images. |
Manage image watermarks | watermark | Adds picture or text watermarks to images. |
Query image information | info | Queries image information, including the size, width, height, format, and quality of the image. |