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

Image Processing Functions

Table 1 describes what you can do on images stored in OBS by using image processing.

Table 1 Image processing functions

Function

Description

How to Use

Getting Information About an Image

Returns an image's basic information, including the format, size, and average color value.

Making an API call

Setting Image Effects

Adjusts an image's effects, including the brightness, contrast, sharpness, and blur.

Using GUI on OBS Console

Editing code on OBS Console

Making an API call

Resizing Images

Resizes images based on a specified width, height, or percentage.

Editing code on OBS Console

Making an API call

Watermarking Images

Adds a text watermark, an image watermark, or both of them to a specific position of an image. Text watermarks can have a color, font, and size configured, and image watermarks can be resized, rotated, or cropped before being added to images.

Using GUI on OBS Console

Editing code on OBS Console

Making an API call

Converting Formats

Converts images to various formats, and supports interlaced rendered images after conversion.

Using GUI on OBS Console

Editing code on OBS Console

Making an API call

Rotation Settings

Rotates images clockwise, and automatically rotates images based on the recorded rotation information of cameras or smartphones.

Editing code on OBS Console

Making an API call

Common Cropping

Crops images based on the specified width, height, radius of the inscribed circle, index, and radius of rounded corners.

Editing code on OBS Console

Making an API call

Changing Image Quality

Compresses JPG images based on the relative quality and absolute quality.

Editing code on OBS Console

Making an API call

Slimming Images

Reduces the image size without compromising its quality.

Editing code on OBS Console

Making an API call

Image Processing Persistency

Asynchronously stores images after processing in a specified OBS bucket for you to directly access the processed images.

Editing code on OBS Console

Making an API call

Access with Commands

Orchestrates multiple process commands in sequence. With this function, you can add multiple process commands to the URL of the image that you want to process, and separate each command using the designated delimiter. Then the commands are executed one by one from left to right.

Editing code on OBS Console

Making an API call

Creating an Image Style

Customizes image styles for you to batch process images that require the same processing operations.

Using GUI on OBS Console

Editing code on OBS Console