Skip to main content

Create an image style for a bucket

  1. On the CRE website, log in to the OSS console. fg-dc-oss-3.4.1-1

  2. On the OSS page, select the Buckets tab.

  3. On the Buckets page, select the bucket.

    fg-dc-oss-3.4.1-2

  4. On the details page, click the Image Processing (IMG) tab. fg-dc-oss-3.4.1-3

  5. On the Image Processing (IMG) tab, click the Create Rule button.

  6. 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%.

    fg-dc-oss-3.4.1-4

  1. 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.