Error with BlobToImage when blob is a CR2 file
Posted: 2008-10-26T13:44:56-07:00
An RMagick user is trying to convert a CR2 format blob (acquired via the web) into an image using RMagick's BlobToImage wrapper. With regard to the caution "Requires an explicit image format otherwise the image is interpreted as a TIFF image" he tells RMagick to set the image_info.magick field to "CR2". Nevertheless, with ImageMagick 6.3.7, the image is read in as a TIFF file.
With 6.4.5-0, ImageMagick raises the exception "compression not supported `/home/tim/tmp/magick-XXcLJ1cR'".
The identify command correctly interprets the file as a CR2 file. I suppose this is because the file has a CR2 extension.
I can write a C test program if it would help. I looked at the code and it appears that BlobToImage writes the blob to a temp file but discards the value in the image_info->magick field before reading the file back in. I'm more than happy to do something in RMagick if that's what it takes to make this work.
Here's the input image.
http://s179771984.onlinehome.us/RAWposi ... G_8587.CR2
With 6.4.5-0, ImageMagick raises the exception "compression not supported `/home/tim/tmp/magick-XXcLJ1cR'".
The identify command correctly interprets the file as a CR2 file. I suppose this is because the file has a CR2 extension.
I can write a C test program if it would help. I looked at the code and it appears that BlobToImage writes the blob to a temp file but discards the value in the image_info->magick field before reading the file back in. I'm more than happy to do something in RMagick if that's what it takes to make this work.
Here's the input image.
http://s179771984.onlinehome.us/RAWposi ... G_8587.CR2