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)

R1 = top-left corner, R2 = bottom-left corner, R3 = bottom-right corner, R4 =top-right corner

eg. to cut only one corner: radius=max,0,0,0

Examples

Preview
Syntax

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

Last updated

Was this helpful?