Updated on 2024-08-09 GMT+08:00

Constraints

Operations

  • All image processing operations will not change original images.
  • Archive storage does not support image processing.
  • OBS buckets that use SSE-KMS do not support image processing.
  • Only version 3.0 buckets support image processing. To check a bucket's version, go to the Basic Information area on the bucket's Overview page on OBS Console.
  • Images must be accessible to anonymous users, so that they can be accessed in a web browser by image processing requests that have no signature included. A request URL example is given as follows:

    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, see How Do I Preview OBS Objects in a Browser Online?

Images

  • Supported original image formats include JPG, JPEG, PNG, BMP, WebP, GIF, and TIFF.
  • Supported formats after image processing include JPG, PNG, BMP, and WebP.
  • An original image allowed for processing cannot exceed 25 MB in size, and its width and height after processing cannot exceed 4,096 pixels and 5,000 pixels, respectively.
  • 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.
  • An input image can contain 250 megapixels at most.

Commands

A maximum of 20 commands are allowed, with a total length of no more than 512 characters.

Regions

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