ImageMagickObject returns HTTP as Format

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
btm

ImageMagickObject returns HTTP as Format

Post by btm »

When using librmagick-ruby1.8=2.5.1-1 on Ubuntu 8.10 with libmagick10=7:6.3.7.9.dfsg1-2ubuntu3, if you use Magick::Image::read to load an image via a URL, it's format is returned as HTTP. Since this isn't listed on the format's page, is this a bug or intentional? Is there a way to get the real format? I tried using inspect [1] to no avail. The original source of this question is an Ubuntu bug [2].

irb(main):001:0> require 'RMagick'
=> true
irb(main):013:0> m = Magick::Image::read("http://wdfw.wa.gov/wlm/living/graphics/bat.jpg")
=> [http://wdfw.wa.gov/wlm/living/graphics/ ... k-XXNprK7B HTTP 850x815 850x815+0+0 DirectClass 8-bit 100kb]
irb(main):014:0> m[0].inspect
=> "http://wdfw.wa.gov/wlm/living/graphics/ ... k-XXNprK7B HTTP 850x815 850x815+0+0 DirectClass 8-bit 100kb"

[1] http://www.imagemagicks.org/RMagick/doc ... ml#inspect
[2] https://bugs.launchpad.net/ubuntu/+sour ... bug/291610
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagickObject returns HTTP as Format

Post by magick »

Try getting the URL from the command line:
Is a JPEG returned or HTML?
btm

Re: ImageMagickObject returns HTTP as Format

Post by btm »

Found the answer via the changelog pointing to: viewtopic.php?f=1&t=10715
Post Reply