Updated on 2024-08-09 GMT+08:00

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.

Table 1 Format conversion

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