Bug 250511 - TIF Image appears corrupted in Digikam
Summary: TIF Image appears corrupted in Digikam
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-TIFF (show other bugs)
Version: 1.2.0
Platform: MacPorts macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 02:19 UTC by Conor Dongahy
Modified: 2021-05-07 13:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conor Dongahy 2010-09-08 02:19:04 UTC
Version:           1.2.0 (using KDE 4.4.5) 
OS:                OS X

I have an image, so far I have only found one, that looks corrupted in Digikam. Opened in Okular, Gimp, etc. the image looks fine but in Digikam it looks like it has been cut into misaligned stripes. I have only found the one affected image but their could be more. 
Thumbnails, Preview, and Image Editer seem to be affected. But the Kipi OpenGL Image Viewer is unaffected. Strange?

Reproducible: Always

Steps to Reproduce:
1) Import image into Digikam
2) Open with Viewer or editer

Actual Results:  
The image looks like it has been cut into misaligned stripes.

Expected Results:  
That the image would look as it does it Okular, Gimp, or any other image view I have tested.

I used LightRoom 2 in the past to manage my collection and this image is from that time, I wouldn't be at all surprised if the problem has something to do with LightRoom - so many problems do!
Link to problem image (http://drop.io/by9pbwt) warning 7mb .tif
Comment 1 Conor Dongahy 2010-09-08 03:15:13 UTC
I have added a screenshot of Digikam showing the problem image to (http://drop.io/by9pbwt) hope this helps. A picture being worth a thousand words and all that.
Comment 2 caulier.gilles 2010-09-08 08:39:51 UTC
I recommend to test with digiKAm 1.4.0 where some patch have been applied to TIFF loader.

Also, libExiv2 is an important component used by digiKam to handle metadata. Exiv2 0.20.0 include some improvement about TIFF parsing. Check this library on your computer.

Finally, libtiff, which is used to load tiff image data. Check if you use the last stable release.

Gilles Caulier
Comment 3 Conor Dongahy 2010-09-09 02:23:37 UTC
Thanks for your response.
Sorry I lack the skill to build digikam 1.4.0 on OS X.
I tested Digikam 1.3 on a PCLinuxOS live CD and the bug was still there.
digiKam version 1.2.0
Component Info copied from Digikam 1.2.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: No
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.19
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.4.5 (KDE 4.4.5)
LibKExiv2: 1.0.0
LibKdcraw: 1.0.0
LibLCMS: 119
LibPGF: 6.09.44
LibPNG: 1.2.44
LibQt: 4.6.3
LibRaw: 0.8.5
LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Parallelized demosaicing: Yes
LibGphoto2: 2.4.9.1
LibKipi: 1.0.0
Comment 4 Marcel Wiesweg 2010-09-09 19:44:41 UTC
It can easily be reproduced. Obviously, individual stripes are mirrored individually. This image must use some peculiar format or feature of the TIFF specification.
Digikam is susceptible to such problem because we do not use the simple default routines from libtiff, but need to support more features, like 16bit or cancellation of loading, so we must use the lower level API.
Comment 5 caulier.gilles 2011-12-13 09:53:42 UTC
This entry still valid with 2.x serie ?

Gilles Caulier
Comment 6 caulier.gilles 2013-11-25 14:22:40 UTC
It's still valid using digiKam 3.5.0 ?

Gilles Caulier
Comment 7 caulier.gilles 2015-05-28 13:11:11 UTC
digiKam 4.10.0 PKG installer for MAC OSX Yosemite is available for download :

http://download.kde.org/stable/digikam/digikam-4.10.0.pkg.mirrorlist

Please try with this version and give us a feedback...

Thanks in advance.

Gilles Caulier
Comment 8 caulier.gilles 2015-06-22 19:26:20 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 9 caulier.gilles 2016-06-28 09:16:52 UTC
digiKam 5.0.0-beta7 Installer for MacOSX is now available for testing...

https://drive.google.com/open?id=0B7yq-xFihT0_ZjlIazRPb1lRTEE

Gilles Caulier
Comment 10 caulier.gilles 2016-06-30 14:23:31 UTC
Tested with 5.0.0-beta7 for OSX with use libtiff TIFF test images repository.

No problem detected.

Gilles Caulier