i got an error when trying to combine some jp2 files.
These files are created by separating the chanels of a tiff-file using magick.net.
But now i wanted to go the way back and combine these separated chanels, but it doesn't work! I got the Errormessage :
"Failed to decode the codestream in the JP2 file
`OpenJP2' @ error/jp2.c/JP2ErrorHandler/193"
{"unable to decode image file `\\ROBM8470.jp2' @ error/jp2.c/ReadJP2Image/384"}
I used MagickImageCollection to do the combining!
Code: Select all
using (MagickImageCollection images = new MagickImageCollection())
{
MagickImage redimage = new MagickImage(ROBM8470.jp2);
images.Add(redimage);
MagickImage greenimage = new MagickImage(GOBM8470.jp2);
images.Add(greenimage);
MagickImage blueimage = new MagickImage(BOBM8470.jp2);
images.Add(blueimage);
MagickImage irimage = new MagickImage(IOBM8470.jp2);
images.Add(irimage);
}
Versions i tested are magick.net 7.0.7 and 7.4.6
when i use ImageMagick 7.0.8 it works
Code: Select all
convert ROBM8470.jp2 GOBM8470.jp2 BOBM8470.jp2 IOBM8470.jp2 -combine NOBM8470.tif