Bug 241418

Summary: LZW compressed TIFFs from RawTherapee are won't display
Product: [Applications] digikam Reporter: Michal Thoma <michal>
Component: Plugin-DImg-TIFFAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 1.4.0

Description Michal Thoma 2010-06-11 13:20:59 UTC
Version:           1.2.0 (using KDE 4.4.2) 
OS:                Linux

Digikam can't display LZW compressed TIFFs from the RawTherapee. This is strange because, digikam normally handles LZW compressed TIFFs from other application. Anyway RawTherapee LZW compressed tiffs are also displayed correctly in all other application like Gwenview, Gthumb, Photoshop, Gimp.

There is already open bug in RawTherapee issue tracker:

http://code.google.com/p/rawtherapee/issues/detail?id=107

Right now we can't decide if the problem is in digikam or in RawTherapee output.

Please find example image in attachment.

Reproducible: Always
Comment 1 caulier.gilles 2010-06-11 13:36:29 UTC
Where is TIFF file to test ?

Gilles Caulier
Comment 2 Johannes Wienke 2010-06-14 23:13:31 UTC
This also happens for LZW compressed grayscale tiffs created by irfanview (win):

digikam(8409)/digikam (core) Digikam::TIFFLoader::load: Can not handle image without RGB color-space:  3 
digikam(8409)/digikam (core) Digikam::TIFFLoader::load: Can not handle image without RGB color-space:  3 

http://disc.semipol.de/2010_06-17.tif
Comment 3 Johannes Wienke 2010-06-14 23:19:54 UTC
SVN commit 1137991 by jwienke:

Also enable tiffs with palette. Could not find any problems with a quick test. Please test that this solves the original issue.

CCBUGS: 241418

 M  +2 -1      tiffloader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1137991
Comment 4 Michal Thoma 2010-06-14 23:31:19 UTC
Oh, here is the sample image for this issue:

http://michal.thoma.cz/digikam/lzwtiff8.tif

(RawTherape LZW compressed 8 bit RGB tiff)

I'm bit shocked that it's not here, I thought I uploaded that days ago...

When looking at error console it states: 

digikam(28314)/digikam (core) Digikam::TIFFLoader::load: TIFF loader: Cannot handle non-stripped images. Loading file  "/home/michal/Fotoarchiv/Temp/lzwtiff8.tif"

So I believe it's not same issue as with grayscale lzw images.

I have no idea what is stripped or nonstripped TIFF.