Updated on 2022-05-17 GMT+08:00

Image Processing Function Overview

Table 1 lists the functions provided by the image processing feature in OBS.

Table 1 Image processing functions

Function

Description

Use

Obtaining Image Information

Obtains the basic information of an image, including: format, size, and average color value.

Calling APIs

Brightness

Enhances image effects, including brightness, contrast ratio, sharpness, and blur.

Console GUI

Coding

Calling APIs

Resizing Images

Resizes images based on specified width and height.

Coding

Calling APIs

Public Parameters

Adds watermarks to images at specified positions. Watermarks can be texts, pictures, and their combinations. The color, font, and size of the text on watermarks are adjustable, and you can also resize, rotate, and crop watermarks.

Console GUI

Coding

Calling APIs

Converting Formats

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

Console GUI

Coding

Calling APIs

Rotation Settings

Rotates images clockwise, and supports automatic rotation according to the rotation configuration of cameras and mobile phones.

Coding

Calling APIs

Common Cropping

Crops images according to the specified width, height, circle radius, index mode, and rounded rectangle.

Coding

Calling APIs

Changing Quality

Compresses JPG images based on the relative quality and absolute quality. After compression, the image quality is reduced but occupies less space. In scenarios that do not require high image quality, this function helps you save traffic and have faster image loading.

Coding

Calling APIs

Slimming Images

Reduces the image size without compromising its quality. This function helps to slim images while maintaining the original quality, accelerating loading and saving traffic.

Coding

Calling APIs

Image Persistency

Persistency indicates that images are asynchronously stored in the specified OBS bucket, so that you can access the processed images directly, improving user experience.

Coding

Calling APIs

Command Access Method

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.

Coding

Calling APIs

Creating Image Styles

Customizes image styles. Each image style specifies a set of process operations. For images require the same process operations, you can create an image style to batch process them.

Console GUI

Coding