Bug 359608 - Digikam does not decode 16 bit grayscale jp2.
Summary: Digikam does not decode 16 bit grayscale jp2.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JP2K (show other bugs)
Version: 4.14.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-20 17:43 UTC by Ulrich Eckhardt
Modified: 2022-01-08 05:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments
Greyscal jp2000 with 14Bit depth. (228.05 KB, image/jp2)
2016-02-20 17:46 UTC, Ulrich Eckhardt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Eckhardt 2016-02-20 17:43:26 UTC
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.
Comment 1 Ulrich Eckhardt 2016-02-20 17:46:56 UTC
Created attachment 97316 [details]
Greyscal jp2000 with 14Bit depth.
Comment 2 Maik Qualmann 2016-02-20 18:26:58 UTC
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