CodeIgniter Forums
How to round the corners of image via Image manipulation code - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to round the corners of image via Image manipulation code (/thread-27567.html)



How to round the corners of image via Image manipulation code - El Forum - 02-14-2010

[eluser]eshban[/eluser]
Hi,

I am using Codeigniter Image Manipulation Class. I need to ask that whether codeigniter supports, to round the corners of images while cropping it.

I need exactly this format of image
http://www.roundpic.com/img/what.gif

Please guide me that how to implement this with codeigniter

Regards,
Eshban


How to round the corners of image via Image manipulation code - El Forum - 02-15-2010

[eluser]umefarooq[/eluser]
Hi try the attachment file helper will help you to solve your problem

Code:
rounded_corner('images/file_name')

just pass the image path it will create rounded corner image for you thanks to this example and just convert it to helper

http://911-need-code-help.blogspot.com/2009/05/generate-images-with-round-corners-on.html