Summary: | IPTC title ("Object Name") not getting truncated at 64 characters in certain situations | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | hesyifei |
Component: | Metadata-Iptc | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, metzpinguin |
Priority: | NOR | ||
Version: | 6.4.0 | ||
Target Milestone: | --- | ||
Platform: | macOS (DMG) | ||
OS: | macOS | ||
Latest Commit: | Version Fixed In: | 8.1.0 | |
Sentry Crash Report: |
Description
hesyifei
2020-07-01 23:49:49 UTC
This problem is quite specific and there are some conditions that must come together. You are using a "compatible" sidecar name. The XMP file would not be considered for sidecars with an image extension. In the upcoming digiKam-7.0.0, the "compatible" sidecar will also be deleted if the RAW image is deleted. You have to understand that with XMP sidecars the IPTC metadata is interpreted and merged with the XMP sidecars. We couldn't merge the IPTC object name. Or check for this special key during the merge and cut to a length of 64 characters. Maik Maik, Look the code from this method: https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/metadataengine/dmetadata/dmetadata_comments.cpp#L449 This can be a source of problem as now IPTC support UTF8 encoding in digiKam, and this method force to drop non printable characters whn this tag is written. Typically, i think that IPTC charset tag must be checked to see if we drop non printable elements. Something done like here: https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/metadataengine/engine/metaengine_p.cpp#L947 Gilles Gilles, In this case, the IPTC field is set to over 64 characters using the merge function with the sidecar if the XMP field is longer. https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/metadataengine/engine/metaengine_p.cpp#L895 Maik https://bugs.kde.org/show_bug.cgi?id=426938 --- Comment #4 from caulier.gilles@gmail.com --- Hi, digiKam 7.2.0-beta2 pre-release PKG installer now support BigSur and is compiled with last stable Qt 5.15.2. https://files.kde.org/digikam/ Problem still reproducible with this version. Thanks and happy Christmas in advance Best Regards Gilles Caulier @hesyifei digiKam 8.0.0 is out. This entry still valid with this release ? Best regards Gilles Caulier Following comment #1 from Maik, you have now a Metadata settings for the compatible sidecar name to prevent this problem. I close this file now. Gilles Caulier |