Advanced compression for HEIF or AVIF images

Updated at:

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.

Billing

The advanced image compression feature is billed based on the specifications of the output image. The following table describes the billing details:

Supported formats

Output specifications

Description

HEIF, AVIF

800 × 600 or smaller

CNY 0.025 per 1,000 requests

Larger than 800 × 600

CNY 0.1 per 1,000 requests

Note

Each successful request counts as one operation. Billing is calculated per 1,000 requests. Failed requests that return an error are not billed.

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)