You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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! It even lets you use GraphicsMagick, too, if that's your thing.
Why?
At Fol.io, we needed server-side image processing to work well and bend to our will. I wrote this because the ImageMagick libraries we tried suffered from at least one of two problems:
Large memory consumption/leaking
Didn't expose the entire ImageMagick API
ImageSorcery doesn't try to be anything more than a wrapper that exposes the full ImageMagick and GraphicsMagick APIs. This makes it small and powerful, eliminating the above problems.
image=ImageSorcery.new("multi-page.pdf")image.manipulate!(format: "png")# => trueimage.filename_changed?# => true# on ImageMagick it returns all layers as a single fileimage.file# => "multi-page-*.png"# on GrapicksMagick it returns only the fist layerimage.file# => "multi-page.png"
Using GraphicsMagick
Assuming you have GraphicsMagick installed on your box:
image=ImageSorcery.gm("image.png")# use as normal
Todo
Some more unit tests
A few more convenience methods (like "dimensions").
About
A ruby Image/Graphics Magick library. Note: This project is no longer maintained.