Converting Format

This function is available for GUI, Code, and API calling mode. The original image can be converted into supported formats. For details, see Table 1.

  • Supported formats of the original image: .jpg.jpeg.png.bmp.webp.gif.tiff.
  • Supported format after processing: .jpg.png.bmp.webp.

Operation name: format

Table 1 Format conversion

Parameter

Value Description

Code Example

jpg

The image is saved in JPG format. If the original image is in vector formats such as .webp.bmp, and .png, the transparent part will be padded to white.

image/format,png

webp

The image is saved in .webp format.

image/format,webp

bmp

The image is saved in .bmp format.

image/format,bmp

png

The image is saved in .png format.

image/format,png

Example

  • Save the original image of .jpg format into .png format.

    https://obs.cn-north-1.myhwclouds.com/ya89soshla6s4uma-ims-example-cn-north-1/example.jpg?x-image-process=image/format,png

Registration