This document helps you understand continuous image processing.
Operation Scenarios
You can use splicing processing parameters to perform multiple consecutive image operations in a single request.
Constraints and Restrictions
Images can also be spliced with a "|" symbol, but the subsequent operations must be prefixed with image/. Example: image/rotate,45|image/resize,p_80.
Preprocessing for image watermarks also supports splicing requests, but does not support the "|" symbol. Use "/" instead.
Description
Operators: resize, watermark, crop, rotate, and format.
You can use splicing processing parameters to perform multiple consecutive image operations in a single request. Operations are executed in the order in which they appear in the request. Parameters are separated by "/" during the operation.
Example
Rotate + Crop
First, rotate the image 180°, then crop a 300 px* 300 px image located at the lower-right corner with an offset of (50,50). Example request:
image/rotate,180/crop,x_50,y_50,w_300,h_300,g_se
Resize + Watermark
Assume the watermark image is shuiyin.png in the same bucket as the source image, the content to be encoded is "shuiyin.png" and the encoded string is c2h1aXlpbi5wbmc=. Then, resize the image to 80% of the source size. Example request:
image/watermark,image_c2h1aXlpbi5wbmc=,t_50/resize,p_80