On 9/14/05, Timothy Hunter <cyclists / nc.rr.com> wrote:
> 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
> 
> 

irb(main):002:0> img = Magick::Image.read('lodge.jpg')
Magick::ImageMagickError: no decode delegate for this image format `lodge.jpg': 
        from (irb):2:in `read'
        from (irb):2

I assume that means that imagemagick wasn't compiled with enough image
support, right?