ImageMagick lossless JPEG2000 compression of 10-bit per component images is wrong
Posted: 2016-03-15T16:52:09-07:00
Code: Select all
Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): bzlib fontconfig freetype jp2 lcms pangocairo png tiff x xml zlib
Basically, while JPEG2000 compression works as expected with 8-bit and 16-bit images, it fails for 10-bit images, the output image is not identical to the original. Confirmed by two different people. OpenJPEG's own compression utility does generate a lossless 10-bit JPEG2000 file that's identical to the original, so this is likely a bug in ImageMagick.