First example in rmagic documentation does not work

Bug #26138 reported by Stephen Birch
6
Affects Status Importance Assigned to Milestone
librmagick-ruby (Ubuntu)
Invalid
Low
MOTURuby

Bug Description

The example program from librmagic-ruby-doc which simply shows Cheetah.jpg does
not work. Even though Cheeyah.jpg is in the current working directory the
program throws the following exception:

/usr/lib/ruby/1.8/RMagick.rb:1378:in `read': unable to open image `jpg': No such
 file or directory: (Magick::ImageMagickError)

The program looks like this:

require 'RMagick'
include Magick
cat = ImageList.new('Cheetah.jpg')
cat.display
exit

Revision history for this message
Rocco Stanzione (trappist) wrote :

This appears to be a bug in librmagick, since the same example does work in dapper.

Changed in ruby1.8:
status: Unconfirmed → Confirmed
Revision history for this message
Rocco Stanzione (trappist) wrote :

Definitely a librmagick bug, see http://rubyforge.org/tracker/index.php?func=detail&aid=2028&group_id=12&atid=133

No fix has been released speficifally for this, but newer packages do work. It may have been a Debian-specific bug.

Revision history for this message
Lucas Nussbaum (lucas) wrote :

I've prepared an updated package for Breezy, available at http://tiber.tauware.de/~lucas/pkg/librmagick-ruby/

It builds and installs on Breezy, and fixes bugs 1299, 4636 and 26138. It is a new version of the library, but is unlikely to break anything since there was only additions to the API.

Also, the version currently in Breezy is severely broken, so I really think this is an interesting upgrade.

Changed in librmagick-ruby:
assignee: debzilla → moturuby
status: Confirmed → In Progress
Revision history for this message
Lucas Nussbaum (lucas) wrote :

This updated package won't get into breezy-backports (See bug 39095). Marking this bug as Rejected. Feel free to use the package on my homepage as a workaround.

Changed in librmagick-ruby:
status: In Progress → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.