Rounded corners

See all posts Reply

Rounded corners new!
by Serega, 16 years ago
How can I create rounded corners in img with class.upload?
ThanksReply
Re: Rounded corners new!
by colin, 16 years ago
The class currently doesn't have a feature to do rounded corners automatically.

It is planned to implement it at a later stage. If your image has fixed dimensions, then you can apply a mask with the corners (using image_watermark setting). But if the images can be of any dimensions, the mask doesn't work anymore.

In fact, it is more a problem of finding an easy interface for it. One way would be to have a mask image, cut in 9 parts. Then, we would set the class to use this mask, and the class will cut the image in 9 parts, using the corners and each side parts as individual masks (only the center would be discarded). It is certainly possible to do, I just want to do it in a clean way.

Another way is to cut out corners, antialiased or not. It would only do round corners, and would not require a mask image. Only the radius in pixels and eventual corner color would need to be set.Reply