Setting Image Advanced Compression

Last updated: 2021-09-30 12:29:05

    Overview

    COS’s CI-based Image Advanced Compression allows you to easily convert images into formats that provide a high compression ratio, such as TPG and HEIF. This effectively reduces the transmission time, loading time, and the use of bandwidth and traffic.

    Note:

    • You can use Image Advanced Compression to convert JPG, PNG, or WebP images into TPG or HEIF.
    • To use the TPG format, ensure that the environment where images are loaded supports TPG decoding. CI provides the TPG decoder−integrated SDK for iOS, Android, and Windows clients to facilitate quick integration with TPG.
    • Currently, iOS 11 or later and Android P have native support for the HEIF format.
    • Image Advanced Compression is charged by CI. For detailed pricing, please see Billing and Pricing.

    Directions

    1. Log in to the COS Console.
    2. Click Bucket List in the left sidebar.
    3. Click the bucket you want to enable Image Advanced Compression for.
    4. Click Data Processing > Image Processing.
    5. Find the Image Advanced Compression area, click Edit, enable the status, and click Save.

      Once Image Advanced Compression is enabled, you can call the Image Advanced Compression API to convert images in the bucket into TPG/HEIF upon download.