Object Storage Service (OBS) Image Processing feature

Feature description

Image Processing feature is integrated into OBS DFV and supports operations such as slim (downsize), crop, compress, and watermark images, as well as convert the formats of images.

User Experience

OBS only stores the original image and not cache/store the processed image.

The Image Processing will get the original image in real-time and return the processed result when end-users request the image through <object URL>?x-image-process=style/<style name>.

1. Create style through console API

2. Save style

3. Upload image to OBS bucket

4. Access processed image

Original image
Processed image

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

Compressing Images

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

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 that require the same process operations, you can create an image style to batch process them.

Console GUI
Coding