Image Processing lets you scale an image proportionally by specifying a percentage parameter.
Parameter
Name | Description | Valid values |
p | Percentage | 1 to 1000 A value less than 100 scales the image down. A value greater than 100 scales the image up. |
If you do not specify a format, the source image is converted to the JPG format by default. This may cause distortion if the source image is in a format such as PNG, WEBP, or BMP. For more information, see Quality transformations and Format conversions.
When the p parameter is used with the w and h parameters, the scaling percentage is applied to the width and height values. For example, 100w_100h_200p is equivalent to 200w_200h.
When an image is scaled up, the maximum length of an edge cannot exceed 4,096 px × 4.
Examples
Double the image size.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@200p

Reduce the image to half its original size.
https://oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/example.jpg@50p
