Rounded corners
Apply rounded corners with specified radius
Rounds the corners of images with a radius of X pixels. If you wish to fill the cut corner(s) with a specific color, you can use the bg_color parameter.
radius=X (all corners are rounded with radius X pixels)
radius=R1,R2,R3,R4 (values for each corner, with max being the min px of the 2 sides around corner)
If four values are provided, these values correspond to the four corners: R1 = top-left corner, R2 = bottom-left corner, R3 = bottom-right corner, R4 =top-right corner. For example, to round only one of the corners with the maximum possible radius, you need to use radius=max,0,0,0.
Examples

Transparent corners (default, if the formats supports transparency): /sample.li/flat2.jpg?w=400&radius=25&force_format=png

Solid color corners: /sample.li/car1.jpg?w=400&radius=25&bg_color=cccc30

Maximum radius on two corners only: /sample.li/hotel.jpg?w=400&h=245&radius=0,max,0,max
Last updated
Was this helpful?