Summary: | 16-bit TIFF render as 3x3 black & white mosaic [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Alphazo <kde-1091> |
Component: | Plugin-DImg-TIFF | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde-1091, marcel.wiesweg, tschenser |
Priority: | NOR | ||
Version: | 0.10.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.1.0 | |
Sentry Crash Report: | |||
Attachments: |
PATCH
updated version of the patch |
Description
Alphazo
2009-05-12 18:37:34 UTC
The given image has a separate planar configuration (TIFFTAG_PLANARCONFIG == PLANARCONFIG_SEPARATE) and is 16bit. For loading 16bit we cannot use libtiff's convenience methods but use TIFFReadEncodedStrip directly. Currently we do not support this type of image, I am not quite sure what is the right way to interpret such tiles. I found this http://www.gnu-darwin.org/www001/ports-1.5a-CURRENT/graphics/xpaint/work/xpaint-2.7.8.1/rw/readTIFF.c file as an example but they read row-by-row and 8bit data. We read strip-by-strip and 16bit. How is gwenview handling this? It is displayed correctly in there... I assume in Gwenview it's loaded in 8bit? Here is the result of my latest tests: - showFoto KDE 4.3.4 : BAD - ristretto 0.0.22 : GOOD - GPicview 0.2.1 :GOOD - Gwenview KDE 4.3.4 : GOOD - fotoxx 8.8 : GOOD - DigiKam 1.0RC : BAD Created attachment 39265 [details]
PATCH
this patch add support for 16bit images with PLANARCONFIG_SEPARATE encoding in tiffloader (fixes this bug)
As you digikam-devels are the fastest bug-responsive crew on earth and there is no feedback about the above patch I think the main problem is that I missed to give some detailed infomation about. In case of PLANARCONFIG_SEPARATE every strip do only contain one color channel. All strips of one color channel are side by side to another, that means first there are stips containing blue, the came all the strips containing green and so on. That's all. Thanks for explaination Jens. I think this bug is tracked by Marcel. Wait and see... Gilles Caulier Sorry, it was sitting in a large pile of TODOs. Have you updated your SVN checkout recently and merge the latest changes? Currently the patch does no longer apply, there were some endianness bugs fixed. Created attachment 39394 [details]
updated version of the patch
As I do not own a big-endian machine, i can not guarantee that color channels are mapped right on powerpc.
SVN commit 1067391 by mwiesweg: Support loading 16bit TIFFs with TIFFTAG_PLANARCONFIG == PLANARCONFIG_SEPARATE. Applying patch by Jens Müller, thank you. BUG: 192461 M +2 -1 NEWS M +114 -14 libs/dimg/loaders/tiffloader.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1067391 |