Skip to main content

Create an image style for a bucket

  1. Log on to the OSS console. fg-dc-oss-3.4.1-1

  2. In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the bucket for which you want to create styles. fg-dc-oss-3.4.1-2

  3. Click the Image Processing (IMG) tab. On the page that appears, click Create Rule. fg-dc-oss-3.4.1-3

  4. In the Create Rule panel, configure the style. You can use Basic Edit or Advanced Edit to create a style: fg-dc-oss-3.4.1-4

  • 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%.
  1. Click OK. After you create a style, you can click Export to export the style to a specified local path.