tencent cloud

피드백

Image Advanced Compression

마지막 업데이트 시간:2024-02-29 16:52:32

    Overview

    This document provides an overview of APIs and SDK code samples for image advanced compression.
    API
    Description
    Allows you to easily convert images into formats that provide a high compression ratio, such as TPG and HEIF. This effectively reduces the transfer time, loading time, and the use of bandwidth and traffic.

    Sample request

    // Convert the input image to 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 input image to HEIF format
    filepath = "test.heif"
    _, err = c.CI.GetToFile(context.Background(), name, filepath, "imageMogr2/format/heif", nil)
    if err != nil {
    // ERROR
    }
    
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원