Updated on 2024-03-04 GMT+08:00

Constraints

Operations

  • All image processing operations will not change original images.
  • Archive storage does not support image processing.
  • Deep Archive storage does not support image processing.
  • OBS buckets that use SSE-KMS do not support image processing.
  • Currently, only buckets of version 3.0 support image processing. To check a bucket's version, go to the Basic Information area on the bucket's Overview page.
  • If an image is set to be accessible by anonymous users, the image can be accessed directly through a web browser and signature is not required in image processing requests. Example:

    https://bucketname.obs.ap-southeast-1.myhuaweicloud.com/example.jpg?x-image-process=style/stylename

    For details about how to make images accessible to anonymous users, see Granting Public Read Permissions on a Bucket for Anonymous Users.

  • For security and compliance purposes, using a default bucket domain name (bucket domain name or static website domain name) to preview objects in the bucket will be prohibited by OBS. When you use such domain name to access objects (such as videos, images, and web pages) through a browser, no content will be displayed, instead, the content is downloaded as an attachment.

    For details about how to preview objects online, see How Do I Preview Objects in OBS Through My Browser?

Images

  • Supported original formats: JPG, JPEG, PNG, BMP, WebP, GIF, and TIFF.
  • Supported target formats: JPG, PNG, BMP, and WebP.
  • The supported maximum size of an image is 25 MB, with maximum width of 4096 px and height of 5000 px after processing.
  • An animated image (like a GIF or WebP image) will be returned without processing if it is greater than 2 MB in size or has over 50 frames.
  • Currently, processing images in CMYK may change their color.

Commands

Commands are not allowed to have more than 512 characters, and the maximum number of commands is 20.

Regions

Image processing is currently available in only some regions. For details about the supported regions, see image processing on the Function Overview page.