Converting Formats
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 original formats: JPG, JPEG, PNG, BMP, WebP, GIF, and TIFF.
- Supported target formats: JPG, PNG, BMP, and WebP.
Operation name: format
| 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,jpg |
| 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://e-share.obs.cn-north-1.myhuaweicloud.com/example.jpg?x-image-process=image/format,png

Last Article: Converting Formats
Next Article: Interlaced image loading
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.