views:

105

answers:

2

Need a simple a way of rounding off an Image. I need the corners to be transparent. This link shows how to do it via command line:

http://www.imagemagick.org/Usage/thumbnails/#rounded

What I need is the corresponding RMagick\Ruby code... Thanks!

+1  A: 

If you are using paperclip, check http://loo.no/articles/rounded-corners-with-paperclip

Voyta
was using a hand-rolled image solution, but perhaps I'll switch over to paperclip. thanks.
mikeycgto
+1  A: 

In general I've had such poor luck with RMagick that I generally find it easier to just do a system() call with the command in it to modify the images. If you took that approach you could use exactly the command in the link you referenced.

Mike Buckbee