Bug 405537 - Strange behavior with tag in attached file
Summary: Strange behavior with tag in attached file
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (other bugs)
Version First Reported In: 6.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-16 20:06 UTC by harald.aust
Modified: 2019-03-20 20:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0
Sentry Crash Report:


Attachments
Sample file (2.49 MB, image/jpeg)
2019-03-16 20:06 UTC, harald.aust
Details
Disappearing "Photograph Properties" (35.41 KB, image/jpeg)
2019-03-20 12:55 UTC, harald.aust
Details

Note You need to log in before you can comment on or make changes to this bug.
Description harald.aust 2019-03-16 20:06:07 UTC
Created attachment 118850 [details]
Sample file

SUMMARY

The attached file contains a tag "r4", which is visible in Windows Explorer, Exiftool, Irfanview, Picasa, but not in digiKam. 

Also, after adding a tag externally, digiKam refreshes and "Photograph Properties" disappear.


STEPS TO REPRODUCE
1. Load file into digiKam
   => Tag "r4" is not shown in "Properties" page on the right side.
2. In Windows Explorer, add a Tag "r5" after "r4"
   => Properties in digiKam refresh automatically. Tags r4 and r5 are now shown. However, "Photograph Properties" disappear.
3. In Windows Explorer, remove Tag "r5".
   => This time, digiKam does not refresh.
3. In Windows Explorer, rename file to DSC06938a.jpg.
   => digiKam refreshes. "Photograph Properties" are visible again, as is tag r4.


SOFTWARE/OS VERSIONS
Windows: Win7 32bit


ADDITIONAL INFORMATION

I have the same behavior with all my files; the attached is just a sample. Might be interesting to know that the other tags were exported from Lightroom, while the tag "r4" was added later using exiftool.
Comment 1 Maik Qualmann 2019-03-16 20:27:56 UTC
Your keyword is included in "Iptc.Application2.Keywords" though not
in "Xmp.dc.subject". This behavior you can set in the digiKam-> Settings-> Metadata-> Advanced and there Iptc.Application2.Keywords move higher. Programs store tags in different metadata fields. You have to tell digiKam which one to import.

Exiftool:
Keywords : 2018 06 Schottland, Kelpies, Lightroom43, r4
Subject : 2018 06 Schottland, Kelpies, Lightroom43

Maik
Comment 2 harald.aust 2019-03-17 15:05:27 UTC
Maik,

Thanks, that solved the main issue. I have never used "Subject" and wasn't even aware that Lightroom writes this tag. To add to the confusion, what Windows Explorer shows seems to be neither "Keywords" nor "Subject" but the union of the two...

The second issue, disappearing "Photograph Properties", remains, and can be reproduced as follows:
- Mark a picture in digiKam.
- Add a tag to this picture in Windows Explorer.
=> Tags are refreshed in digiKam, but Photograph Properies disappear until restart of digiKam.

Also, I have experienced issues with the tag character set. Being German, I use umlauts in my tags, and depending on the software I created them with, they are or are not correctly displayed in digiKam.
Which character set do you use for keywords?

Best regards,
Harald
Comment 3 Maik Qualmann 2019-03-17 17:16:30 UTC
I can not reproduce the problem, the photo properties do not disappear here (Windows10 VM). The "Rescan file when files are modified" meta data option should be active if many files are changed externally. There is a limitation under Windows. We monitor directory changes. This will detect when the file name or file size changes and files are deleted or added. When changing tags in Explorer it is possible that the file size does not change-> so digiKam will not be notified.

Maik
Comment 4 harald.aust 2019-03-20 12:55:32 UTC
Created attachment 118934 [details]
Disappearing "Photograph Properties"

Maik,

Well, if you can't reproduce the problem, it's difficult. Nonetheless, attached a screenshot of what it looks like after adding a tag outside of digiKam. For this picture (and only for this picture), it remains like that until I restart digiKam.


Regarding refreshing (I know, this was a different issue): Album / Reread Metadata is still very slow (about 1.5 seconds per picture in the album), so its practical use is limited. I wanted to suggest to add a context menu option for "Reread Metadata" for individual pictures but found that it's already there in the Captions panel / More. And it can be configured as being part of the toolbar. Ok.

Which brings me back to this issue: Whenever I do a "Reread Metadata from File" on a picture, "Photograph Properties" are gone afterwards for this picture. Maybe you can reproduce that?

Finally, the "issues with the character set" I hinted at earlier turned out to be not a bug in digiKam but in IrfanView that, through all the years I've been using IrfanView, I had never encountered. An update of IrfanView fixed that.

Thanks for your continued support, and best regards,

Harald
Comment 5 harald.aust 2019-03-20 12:58:22 UTC
Just to be more precise in my previous comment: "Reread Metadata from File" makes the "Photograph Properites" disappear, no matter whether or not I have changed a tag outside of digiKam.

Best regards
Harald
Comment 6 Maik Qualmann 2019-03-20 20:45:42 UTC
Git commit 976eea223a9a90315c4312803f53541d22cb8d12 by Maik Qualmann.
Committed on 20/03/2019 at 20:44.
Pushed by mqualmann into branch 'master'.

fix re-read image and video metadata if database cleanup option is enabled
FIXED-IN: 6.1.0

M  +2    -1    NEWS
M  +6    -4    core/libs/database/item/containers/iteminfocache.cpp

https://commits.kde.org/digikam/976eea223a9a90315c4312803f53541d22cb8d12