Create an image style for a bucket
On the CRE website, log in to the OSS console.
On the OSS page, select the Buckets tab.
On the Buckets page, select the bucket.
On the details page, click the Image Processing (IMG) tab.
On the Image Processing (IMG) tab, click the Create Rule button.
On the Create Rule panel, configure the parameters.
Note: You can use Basic Edit or Advanced Edit to create a style:
Basic Edit: You can use the IMG features by using the graphical user interface (GUI). For example, resize an image, add a watermark, and modify the image format.
Advanced Edit: You can use the API code to edit the IMG features that you want to use to process an image. The format is image/action 1,parame _value1/action2,parame_value2/... Example: image/ resize p_63 /quality,q_90 indicates that the image is scaled down to 63% of the source image, and then the relative quality of the image is set to 90%.
- On the Create Rule panel, click the OK button.
Note: After you create a style, you can click the Export button to export the style to a specified local path.