This API is used to provide format conversion, gif format optimization, and progressive display in Tencent Cloud CI.
download_url?imageMogr2/format/<Format> /cgif/<FrameNumber> /interlace/<Mode>
|download_url||URL that is used to access a file. The URL form is
|/format/<Format>||Format conversion, which can be used to convert images into target thumbnails in the following formats: jpg, bmp, gif, png, webp, and yjpeg. Where, yjpeg is optimized based on jpeg by CI and is actually the jpg format. The default format is that of an original image.|
|/cgif/<FrameNumber>||Optimization of the gif format, which is used to optimize images whose original images are in the gif format. It can reduce frames and colors of images. There are two situations:
|/interlace/<Mode>||The output is in the progressive jpg format. The value of Mode can be 0 or 1. 0: indicates the progressive mode is not enabled. 1: indicates the progressive mode is enabled. This parameter is valid only when the output image is in the jpg format. If the output image is not in the jpg format, this parameter will be ignored. The default value is 0.|
This example shows you how to convert an original image from the jpeg format to the png format.