From: Timothy Hunter Date: 2005-09-15T08:16:34+09:00 Subject: Re: RMagick + ImageMagick issues on OSX Joe Van Dyk wrote: > Hi, > > I compiled and installed ImageMagick from scratch. Seemed to install > fine. Also installed RMagick via gems. (all last night) > > Magick::Image.from_blob ain't working though. > > > irb(main):001:0> require 'RMagick' > => true > irb(main):002:0> Magick::Image.from_blob(File.read("lodge.jpg")) > => [] > > Where can I begin troubleshooting? > > I get that behavior when I try to read a file that isn't an image. Two things to try: 1. Can ImageMagick display the image? Try display lodge.jpg 2. Can you simply read the image? Try this: img = Magick::Image.read('lodge.jpg') img.display