Search code examples
ruby-on-railsrubyrmagick

RMagick Rounded Corners


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!


Solution

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