tencent cloud

masukan

Image Advanced Compression

Terakhir diperbarui:2021-06-09 16:04:56

    Overview

    This document provides an overview of APIs and SDK code samples related to Image Advanced Compression.

    API Description
    Image Advanced Compression 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.

    Sample request

    
    // Convert the image into TPG format.
    name := "test.png"
    filepath := "test.tpg"
    _, err := c.CI.GetToFile(context.Background(), name, filepath, "imageMogr2/format/tpg", nil)
    if err != nil {
    // ERROR
    }
    // Convert the image into HEIF format.
    filepath = "test.heif"
    _, err = c.CI.GetToFile(context.Background(), name, filepath, "imageMogr2/format/heif", nil)
    if err != nil {
    // ERROR
    }
    
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24