Doing some image manipulation in Ruby?
Interfacing with ImageMagick is the most common way to go, but if you only need basic manipulation, consider chunky_png as an alternative.
Definitely need to use ImageMagick? Look into mini_magick instead of rmagick. You'll have to dive into the ImageMagick docs and figure out most of the syntax, BUT it handles memory issues WAY better.
Also, if you are definitely using ImageMagick, homebrew (brew install imagemagick) is the easiest way to do the installation.
Written by Jeffrey Matthias
Related protips
2 Responses
Use GraphicsMagick. It's supported by mini_magick
.
over 1 year ago
·
Thanks! Everything I'm reading about it sounds like a great solution. That said, unfortunately, Heroku, where I'm currently hosting my app the needs a graphics library, doesn't have the option. I'll still play around with it.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
#imagemagick
#rmagick
#minimagick
#image manipulation
#chunky_png
#chunkypng
#mini_magick
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#