Bug 356080

Summary: digiKam does not open preview for LZW non-stripped TIFFs created by ScanTailor
Product: [Applications] digikam Reporter: Milan Knížek <knizek>
Component: Preview-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 4.14.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0
Attachments: Example of trouble-making TIFF

Description Milan Knížek 2015-11-29 14:41:44 UTC
Hi,

I process scanned images with ScanTailor, which outputs TIFF files with LZW compression (B&W, Colour).

digiKam shows only the thumbnail and fails on preview. On CLI, it complains about missing support for non-stripped images:

digikam(8658)/digikam (core) Digikam::ThumbnailCreator::createThumbnail: Cannot create thumbnail for  "/srv/Photos/Testing/Bugs/ScanTailor-LZW.tif" 
digikam(8658)/digikam (core) Digikam::ThumbnailCreator::load: Thumbnail is null for  "/srv/Photos/Testing/Bugs/ScanTailor-LZW.tif" 
digikam(8658)/digikam (core) Digikam::ImageInfo::fromLocationAlbumAndName: No itemShortInfo could be retrieved from the database for image "ScanTailor-LZW.tif" 
digikam(8658)/digikam (core) Digikam::TIFFLoader::load: TIFF loader: Cannot handle non-stripped images. Loading file  "/srv/Photos/Testing/Bugs/ScanTailor-LZW.tif" 




Reproducible: Always




There is a similar bug (RESOLVED/FIXED) a few years ago: https://bugs.kde.org/show_bug.cgi?id=241418.

All other viewers I use can handle it correctly (ImageMagick, Geeqie, Eye of Mate, PhotoPrint, XnView, darktable, GIMP). ShowFoto also displays only a thumbnail and no image.
Comment 1 Milan Knížek 2015-11-29 14:44:46 UTC
Created attachment 95804 [details]
Example of trouble-making TIFF
Comment 2 Maik Qualmann 2015-11-29 19:51:03 UTC
Git commit ab424dbd41840a6631897ee092a8c53707bbe4f3 by Maik Qualmann.
Committed on 29/11/2015 at 19:50.
Pushed by mqualmann into branch 'master'.

fix TIFFLoader for files with TIFFTAG_ROWSPERSTRIP == uint-1
FIXED-IN: 5.0.0

M  +7    -3    libs/dimg/loaders/tiffloader.cpp

http://commits.kde.org/digikam/ab424dbd41840a6631897ee092a8c53707bbe4f3