Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A ruby Image/Graphics Magick library that doesn't suck as bad.

tree: 0a30c57784

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 image_sorcery-1.0.1.gem
Octocat-spinner-32 image_sorcery-1.0.2.gem
Octocat-spinner-32 image_sorcery.gemspec
Octocat-spinner-32 readme.markdown

Image Sorcery allows you to leverage all three of ImageMagick's command line tools, mogrify, convert, and identify, for maximum magickal power and minimum memory consumption!


At, we need server-side image processing to work well and bend to our will. I wrote this because most of the ImageMagick libraries out there for Ruby suffer from at least one of two problems:

  • Large memory consumption/leaking
  • Doesn't expose the entire ImageMagick library

Due to the way Image Sorcery was written, it manages to avoid both of these problems.


gem install image_sorcery

Code Examples

image ="image.png")
image.identify # => "image.png PNG 500x500 500x500+0+0 8-bit DirectClass 236KB 0.010u 0:00.010\n"
image.manipulate!(scale: "50%") # => true
image.dimensions # => { x: 250, y: 250 }
image.convert("thumbnail.jpg", quality: 80, crop: "100x100>") # => true


Unit tests coming soon! And a few new convenience methods (like "dimensions").

Something went wrong with that request. Please try again.