Converting Formats and Interlacing Images
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 |
Interlaced Image Loading
You can edit code on OBS Console or make an API call to load images in an interlaced way.
With format conversion, images are generated in baseline JPEG format by default. If you want to generate an image in progressive JPEG, use the interlace parameter. Table 2 describes the parameters.
- Display of baseline JPG images: from top to bottom
- Display of progressive JPEG images: from blurry to clearer and clearer
This operation is represented by interlace.
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