Digikam does not decode grayscale jpeg2000 images correctly when the bit depth is larger than 8 bits. It decodes this pictures to some strange green/white rectangles. You can create such jp2 images for example with imagemagic: convert test.tif -depth 16 -quality 80 -type grayscale test.jp2 Images converted with depth 8 will be decoded correctly: convert test.tif -depth 8 -quality 80 -type grayscale test.jp2 Reproducible: Always Steps to Reproduce: 1. Create an jp2 image from a 16Bit image using imagemagik: "convert test.tif -depth 14 -quality 80 -type grayscale test.jp2" 2. View the created image as preview or try to open this created image. Actual Results: Strange image with white/green boxes. Expected Results: Correct display of the black and white image.
Created attachment 97316 [details] Greyscal jp2000 with 14Bit depth.
Git commit 64b854f99cfc10108a9ce7877ef63f8ada66b497 by Maik Qualmann. Committed on 20/02/2016 at 18:26. Pushed by mqualmann into branch 'master'. add support for 16 bit grayscale jpeg2000 images FIXED-IN: 5.0.0 M +2 -1 NEWS M +21 -6 libs/dimg/loaders/jp2kloader.cpp http://commits.kde.org/digikam/64b854f99cfc10108a9ce7877ef63f8ada66b497