The advanced image compression feature in Object Storage Service (OSS) efficiently converts images to the highly compressed HEIF or AVIF formats.
Prerequisites
The advanced image compression feature is available only in the following regions: China (Zhangjiakou), China (Shanghai), China (Hangzhou), China (Shenzhen), China (Beijing), Singapore, and US (Virginia).
Background information
As camera resolutions and display requirements increase, image processing needs to support formats with higher compression ratios, such as HEIF and AVIF. Traditional image encoding and decoding technologies are inefficient for processing these formats and cannot meet real-time business demands. To address this, OSS introduced the advanced image compression feature to convert images into high-compression formats more efficiently.
Parameter description
When you use the format operation to set the output format to HEIF or AVIF, OSS automatically uses the advanced image compression feature.
|
Parameter value |
Description |
|
heic |
Converts the source image to the HEIF format. |
|
avif |
Converts the source image to the AVIF format. |
Examples
-
Convert a source image from the JPEG format to the HEIF format.
-
Convert a source image from the JPEG format to the HEIF format and scale its resolution to 923 × 600.
The following table compares the size of a source JPEG image with the sizes of the converted HEIF images at different resolutions. As shown in the table, the HEIF format provides a much higher compression ratio than JPEG, which helps reduce costs.
|
Format |
Resolution |
Size |
|
JPEG (source image) |
3924 × 2550 |
2.09 MB |
|
HEIF |
3924 × 2550 |
268 KB (87.5% compression ratio) |
|
HEIF |
923 × 600 |
30.7 KB (98.6% compression ratio) |
