This document helps you understand how to use ZOS image processing.
For images stored in ZOS, you can add image processing parameters to the GetObject request to process images. The main supported features include image rotation, image watermarking, etc.
Supported Features and Parameters
The image processing feature of ZOS supports processing multiple parameters in a single request to achieve sequential processing. Processing order follows the sequence of parameters in the request.
Supported Image Processing Features and Parameters Include:
Function | Parameter | Note |
resize | Resizes images to a specified size. | |
Adds text or image watermarks. | ||
crop | Crops a specified rectangle at a designated position. | |
rotate | Rotates images from 0° to 360°. | |
format | Converts between multiple image formats. | |
info | Retrieves basic information of the image and EXIF information. | |
strip | Strips EXIF information from the image. | |
quality | Adjusts the quality of images in the JPG format and WebP format. | |
bright | Adjusts the brightness of images. | |
interlace | Configures gradual display for JPG images. | |
blur | Applies a Gaussian blur effect to images. | |
auto-orient | Auto-rotates images. | |
average-hue | Queries the average-hue of images. | |
sharpen | Sharpens images. | |
contrast | Adjusts the contrast of images. | |
circle | Crops images into inscribed circles. | |
rounded-corners | Crops images into rounded rectangles based on the specified rounded radius. | |
indexcrop | Crops images along the specified horizontal axis or vertical axis and return the desired partition. |
Image Restrictions
The text below describes image processing restrictions from three aspects: format, size, and image resolution. Note: Additional operational restrictions may apply when using various image processing parameters. See the constraints in the Image Processing Parameters section for details.
Restriction | Note |
Image Format |
|
Image Size | The size of a source image cannot exceed 20 MB. |
Image Resolution |
Note For animated images (such as GIFs), the total pixel count is calculated as width * height * number of frames. For static images (such as PNGs), the total pixel count is calculated as width * height. |