QuickMagick allows you to access ImageMagick command line functions using Ruby interface.
Ahmed ElDawy
gem "quick_magick", "~> 0.8.0"