- Documentation
Torch Object Storage
User Guide
Data processing
Image processing
Rounded-corners
Image processing
Rounded-corners
Rounded-corners
The rounded-corners feature allows you to crop an image into a rounded rectangle with a specified radius. This topic introduces the parameters and provides examples of the rounded-corners feature.
Supported parameters
Notes
- If the output format does not support an alpha channel, such as JPG or JPEG, the area outside the rounded rectangle will be filled with white.
- If the input format supports an alpha channel, such as PNG, WebP, BMP, or other raster image formats, the area outside the rounded rectangle will be transparent. We recommend that you save as a PNG file.
- If the corner radius exceeds half of the length of the short side of the original image, it will automatically be set to the largest possible inscribed circle radius for the image.
Examples
- Set the radius to 100, the output format to JPG, and fill the area outside the rounded rectangle with white.
-
- Set the radius to 100, the output format to PNG, and make the area outside the rounded rectangle transparent.
-
Last updated: 2026.02.03 17:51:49