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?
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?
···
On Sun, Sep 12, 2004 at 08:30:14PM +0900, Roeland Moors wrote:
Guy is right as usual. Looks like that Debian upgrade left you with a newer
version of ImageMagick than the one that RMagick was built with. Re-build
RMagick, starting with ./configure. (Hmmmm...make sure your RMagick
supports the new ImageMagick. RMagick 1.6.0 is the latest version of
RMagick.)