JP2 Support in newer versions of ImageMagick

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
hdfarley3
Posts: 3
Joined: 2012-05-24T08:40:43-07:00
Authentication code: 13

JP2 Support in newer versions of ImageMagick

Post by hdfarley3 »

I have JP2 images that open in IMDisplay from ImageMagick 6.2.5-Q16. I also have ImageMagick 6.7.6-Q16 installed. The IMDisplay that came with the newer version throws an error when I try to open the same images. The error is:

IMDisplayDoc function [DoReadImage] reported an error. imdisplay.exe: irregular channel geometry not supported. C:\users\...\image.jp2 @ error/jp2.c/ReadJP2Image/489

Has the JP2 code changed in the later releases? I can provide the image file if needed. It is a 9KB file of a color image measuring 352x240.

Thanks for your help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: JP2 Support in newer versions of ImageMagick

Post by magick »

Post a URL to your JP2 image so we can download and reproduce the problem. It is likely we can modify the JP2 reader to accept your image format again.
hdfarley3
Posts: 3
Joined: 2012-05-24T08:40:43-07:00
Authentication code: 13

Re: JP2 Support in newer versions of ImageMagick

Post by hdfarley3 »

Thanks for the quick response. Here is a link to the image file:

http://dl.dropbox.com/u/1177590/image.jp2
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: JP2 Support in newer versions of ImageMagick

Post by magick »

We added a patch and your image can now be read in ImageMagick-6.7.7-1 Beta.
hdfarley3
Posts: 3
Joined: 2012-05-24T08:40:43-07:00
Authentication code: 13

Re: JP2 Support in newer versions of ImageMagick

Post by hdfarley3 »

Thanks! I installed the latest windows binary (6.7.7-2) and I can open my jp2 files in IMDisplay.

Unfortunately Apache 2.4 and the imagick library can't open the same image.

If I try to open the image from the database using the readImageBlob function I get the following error in the Windows Event Viewer:
Faulting application httpd.exe, version 2.4.2.0, faulting module CORE_RL_jp2_.dll, version 0.0.0.0, fault address 0x00026907.

If I try to open the image from a local file using the readImage function I get a different error:
Faulting application httpd.exe, version 2.4.2.0, faulting module msvcr100.dll, version 10.0.30319.1, fault address 0x0008ae6e.

I have verified that PHP 5.3.13, Apache 2.4, and imagick are all compiled using VC9 and I have Microsoft Visual C++ 2008 Redistributable installed. It appears that ImageMagic is compiled against VC10. Are ImageMagick binaries compiled against VC9 available?

Thanks for all your help.
Post Reply