Page 1 of 1

Error when converting jpeg2000

Posted: 2009-12-10T16:16:26-07:00
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

Re: Error when converting jpeg2000

Posted: 2009-12-10T16:35:10-07:00
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/

Re: Error when converting jpeg2000

Posted: 2009-12-10T16:44:07-07:00
by rmoCob
Thanks I will give that a try.