Page 1 of 1

ImageMagickObject returns HTTP as Format

Posted: 2009-02-25T11:10:03-07:00
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

Re: ImageMagickObject returns HTTP as Format

Posted: 2009-02-25T11:45:02-07:00
by magick
Try getting the URL from the command line:
Is a JPEG returned or HTML?

Re: ImageMagickObject returns HTTP as Format

Posted: 2009-02-25T11:45:23-07:00
by btm
Found the answer via the changelog pointing to: viewtopic.php?f=1&t=10715