Page 1 of 1

ImageMagick fails with JPEG2000 file

Posted: 2008-11-24T11:15:20-07:00
by naoliv
Hi!

From http://bugs.debian.org/506739, we are having problems in using some JPEG2000 files, like this image.

file says that it's a "JPEG 2000 image data".
identify fails with

Code: Select all

error: cannot decode code stream
identify: unable to decode image file `error.jp2' @ coders/jp2.c/ReadJP2Image/384
convert gives

Code: Select all

error: cannot decode code stream
convert: unable to decode image file `error.jp2' @ coders/jp2.c/ReadJP2Image/384.
convert: missing an image filename `output.png' @ wand/convert.c/ConvertImageCommand/2710.
ImageMagick version is 6.4.5-4 and libjasper version is 1.900.1
Is this a problem with ImageMagick or something wrong with the image, please?

Thank you!

Re: ImageMagick fails with JPEG2000 file

Posted: 2008-11-24T12:09:19-07:00
by AndrewLinden
Some extra datapoints in case anyone is interested:

Imagemagick appears to work fine (no error) for me on the following platforms:

32bit Ubuntu8, ImageMagick 6.3.7
64bit debian etch, ImageMagick 6.2.4
64bit debian etch, ImageMagick 6.4.4 (built from source)

Re: ImageMagick fails with JPEG2000 file

Posted: 2008-11-24T12:53:05-07:00
by magick
identify: unable to decode image file `error.jp2' @ coders/jp2.c/ReadJP2Image/384
That particular error is generated when Jaspers' jas_image_decoder() method fails to decode a JP2 stream. In addition, we tried displaying / converting the image with ImageMagick 6.4.6-1 and there were no complaints. We're not sure why its failing for you.