librmagick-ruby returning incorrect image formats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagemagick (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
librmagick-ruby (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: librmagick-ruby
based on "librmagick-
following results seen on ubuntu:
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'RMagick'
=> true
irb(main):003:0> m = Magick:
=> [http://
should see:
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'RMagick'
=> true
irb(main):003:0> m = Magick:
=> [http://
as can be seen the format reported in the first example is "HTTP" not "JPEG" as it should be... This is a major issue if image format identification is required by an application.
I've posted on the Imagemagick upstream bug forum [1] asking if this is intended, but I found in the changelog "Return the actual image format for HTTP: or FTP: format" [2]
This is actually an imagemagick bug, not a ruby one:
$ /usr/bin/identify http:// wdfw.wa. gov/wlm/ living/ graphics/ bat.jpg wdfw.wa. gov/wlm/ living/ graphics/ bat.jpg=>/tmp/magick- XXXsBrtg HTTP 850x815 850x815+0+0 DirectClass 8-bit 100.77kb
http://
[1] http:// www.imagemagick .org/discourse- server/ viewtopic. php?f=3& t=13203 www.imagemagick .org/discourse- server/ viewtopic. php?f=1& t=10715
[2] http://