Converting Formats
You can use the GUI or code mode on OBS Console or make an API call to convert images to different formats:
- Supported original formats: JPG, JPEG, PNG, BMP, WebP, GIF, and TIFF
- Supported target formats: JPG, PNG, BMP, and WebP (described in Table 1)
This operation is represented by format.
Parameter |
Value Description |
Code Example |
---|---|---|
jpg |
The image is saved in JPG format. If the original image is in vector format such as WebP, BMP, or 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 a JPG image as a PNG image.
https://hw-image-demo.obs.ap-southeast-1.myhuaweicloud.com/example.jpg?x-image-process=image/format,png
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot