Bug 413147

Summary: Pictures missing from thumbnail view of album
Product: [Applications] digikam Reporter: John Carrick Smith <jcarricksmith>
Component: Albums-IconViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:

Description John Carrick Smith 2019-10-18 14:37:38 UTC
SUMMARY
    When viewing an album (in thumbnail view) some pictures do not appear in Digikam although visible in Gwenview, Showfoto and my own picture program (written in C++ with Qt libraries). In an album of 165 images Digikam recognises 158. There is one file which has two versions so six images are not visible.
    Copying the picture file or renaming it makes no difference. Opening it with GIMP and exporting it to a new filename makes the picture visible in Digikam, but only if I delete all the EXIF data first.
    I have deleted the Digikam databases and Digikam has recreated them without any change.
    The output of 'file <filename>' for those visible and invisible is the same, and the properties viewed using Dolphin are the same and inspecting the files with okteta reveals that the first 12 bytes are the same.
  I am unaware of how this situation arose, only that I was renaming files while Digikam was showing the album. However this problem only affects some files, others were renamed and are still shown by Digikam.



SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System) <- 
KDE Plasma Version: 5.12.8
KDE Frameworks Version: 5.55.0
Qt Version: 5.9.7

ADDITIONAL INFORMATION
File with uploaded to Google Drive as too large for bugzilla
url:-
https://drive.google.com/drive/folders/1o7uLnjOrhCZF_1Vosgir_oESB-6lFtzo?usp=sharing

Contents:-
1) Screenshot_20191018_151435.png # A screenshot of Digikam with a problem album open.
2) exifdata # the exif data from the picture as reported by exiv2.
3) hold_dir_ls # a list of the picture files in the directory/album.
4) nws0903004.jpg # an example of a problem picture.

Many thanks for looking at this.

John
Comment 1 caulier.gilles 2019-10-18 14:41:05 UTC
Can you check if this problem can be reproduced with last stable digiKam 6.3.0 AppImage bundle ?
Comment 2 Maik Qualmann 2019-10-18 15:10:06 UTC
Activate "Show always original Image" in digiKam Setup-> Editor-> Versioning. In the current pre-release version of digiKam-6.4.0 there is a repair function for images that are hidden by versioning, but no derived images exist anymore.

Maik
Comment 3 John Carrick Smith 2019-10-18 16:42:30 UTC
Hello Maik,

Did what you suggested and no change. So I tried activating "Always show intermediate snapshots" below "Always show original images" and that brought the pictures back.

Many thanks for the quick response.

John
Comment 4 John Carrick Smith 2019-10-18 16:56:12 UTC
(In reply to caulier.gilles from comment #1)
> Can you check if this problem can be reproduced with last stable digiKam
> 6.3.0 AppImage bundle ?

I have tried this and with the "Always show intermediate snapshots" option enabled the pictures are displayed. Without it they are not. So 6.3.0 behaves the same in this area.

Thanks

John
Comment 5 Maik Qualmann 2019-10-18 18:16:01 UTC
Ok, it's not a bug but a feature. It only becomes problematic when images derived from original or intermediate images no longer exist and they will not be displayed again. DigiKam-6.4.0 has a repair function for original images. In addition, since digiKam-6.3.0 we give an hint in the status bar of why not all images may be displayed in an album view.

Maik