Assertion failure reading possibly corrupt JPEG2000 file

Steve Madsen <[email protected]> Wed, 24 Mar 2010 10:42:42 -0400
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
While running "identify" on http://lightyearsoftware.com/image.jp2, I see the following on Solaris i386 (uname -a: SunOS xxx 5.11 snv_89 i86pc i386 i86pc; ImageMagick 6.6.0-8, Jasper 1.900.1):

Assertion failed: dec->numcomps == 3, file jpc_dec.c, line 1077, function jpc_dec_tiledecode
Abort (core dumped)

On Mac OS X 10.6.2 (current ImageMagick and libraries from MacPorts), for the same image:

identify: MissingImageChannel `image.jp2' @ error/jp2.c/ReadJP2Image/413.

OS X Preview is able to open the file and display something, though it reports dimensions of 512x512 and yet is very blocky. It makes me think the image stream is corrupted midway.

This sounds very similar to http://studio.imagemagick.org/pipermail/magick-bugs/2009-June/003251.html, but that report didn't include platform information. Given my mixed results, platform is important.

-- 
Steve Madsen <[email protected]>
Light Year Software, LLC  http://lightyearsoftware.com