Bug 356080 - digiKam does not open preview for LZW non-stripped TIFFs created by ScanTailor
Summary: digiKam does not open preview for LZW non-stripped TIFFs created by ScanTailor
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Engine (show other bugs)
Version: 4.14.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-29 14:41 UTC by Milan Knížek
Modified: 2017-07-28 20:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments
Example of trouble-making TIFF (1004 bytes, image/tiff)
2015-11-29 14:44 UTC, Milan Knížek
Details

Note You need to log in before you can comment on or make changes to this bug.
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