Error when converting jpeg2000

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rmoCob

Error when converting jpeg2000

Post by rmoCob »

Was looking for a command line utility to convert JPEG2000 images to jpg. I came across ImageMagick and gave it a try. Unfortunately it did not work. The error message I get when I attempt the conversion is

$ convert X.JP2 X.jpg
warning: component data type mismatch
convert.exe: irregular channel geometry not supported `X.JP2' @ jp2.c/ReadJP2Image/489.
convert.exe: missing an image filename `X.jpg' @ convert.c/ConvertImageCommand/2838.


The images were captured as JPEG2000 by a Matrox Morphis card. My assumption is that the format used is not compatible with what ImageMagick knows.

Can someone comfirm that this is the case and if possible is there something I can do to make them 'compatible'. If not does anyone know of some other utility that can do this.

thanks in advance
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error when converting jpeg2000

Post by fmw42 »

I don't know what you can do to fix this, but IM uses the Jasper delegate library to do such conversion, I believe. So you could try running the Jasper program standalone with whatever might be the right flags for your image. see http://www.ece.uvic.ca/~mdadams/jasper/
rmoCob

Re: Error when converting jpeg2000

Post by rmoCob »

Thanks I will give that a try.
Post Reply