On Sun, Sep 12, 2004 at 08:30:14PM +0900, Roeland Moors wrote:
> I have a simple but wierd problem.
> 
> this is my simple program:
> 
> require 'RMagick'
> img = Magick::ImageList.new("dsc01748.jpg")

The 4 first characters are just ignored!
this works:
img = Magick::ImageList.new("1234dsc01748.jpg")

> 
> dsc01748.jpg is an image in the current path.
> After running it, this is the error:
> 
> #ruby ./test.rb 
> /usr/lib/ruby/1.8/RMagick.rb:1377:in `read': unable to open image `1748.jpg': No such file or directory:  (Magick::ImageMagickError)
>         from /usr/lib/ruby/1.8/RMagick.rb:1377:in `initialize'
>         from /usr/lib/ruby/1.8/RMagick.rb:1376:in `each'
>         from /usr/lib/ruby/1.8/RMagick.rb:1376:in `initialize'
>         from ./test.rb:3:in `new'
>         from ./test.rb:3
> 
> This used to work just fine, I also tested an older version of rmagick.
> Is there something changed in ruby?
> 
> I can't figure it out, what am I missing?
> 
> 

I did a debian upgrade today, could that cause the problem. A new
library or something?


-- 
Roeland