ImageMagick fails with JPEG2000 file

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
naoliv
Posts: 110
Joined: 2007-12-10T18:54:27-07:00
Location: Brazil

ImageMagick fails with JPEG2000 file

Post 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!
AndrewLinden

Re: ImageMagick fails with JPEG2000 file

Post 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)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick fails with JPEG2000 file

Post 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.
Post Reply