All Products
Search
Document Center

Object Storage Service:Advanced compression for HEIF or AVIF images

Last Updated:Sep 21, 2026

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

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)