This document helps you understand rounded rectangle.
Operation Scenarios
ZOS supports cropping images into a rounded rectangle You can configure parameters to crop the four corners of an image stored in ZOS into rounded corners, with areas outside the rounded corners filled with transparency or white.
Constraints and Restrictions
For images supporting transparency channels (such as PNG), the areas outside the rounded corners are filled with transparency. For images that do not support transparency channels (such as JPG), the areas outside the rounded corners are filled with white.
For general limitations on the source format, file size, and image resolution, see Image Processing Overview - Image Restrictions.
For regions supporting rounded rectangle, see Product Capability Map.
Description
Operator: rounded-corners
Parameter Name | Purpose | Value | Required |
r | The radius of the specified corner after the image is cropped into rounded corners.
Note If the specified circle radius is greater than half of the shortest side length of the | [1,4096] | Yes |
Example
To crop an image into a rounded rectangle with a corner radius of 200 px at four corners, the specific request parameter is:
image/rounded-corners,r_200