https://bugs.kde.org/show_bug.cgi?id=528966

            Bug ID: 528966
           Summary: Updating or deleting a caption on an
                    already-captioned, face-tagged image writes the prior
                    (stale) caption to EXIF:ImageDescription even when
                    Exif.Image.ImageDescription is unchecked in Caption
                    write settings
    Classification: Applications
           Product: digikam
      Version First 9.1.0
       Reported In:
          Platform: unspecified
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Metadata-Engine
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Description
When updating or deleting the caption of a JPEG that already has an existing
caption and face-tag region metadata, digiKam writes the previous (stale)
caption into EXIF:ImageDescription—even when Exif.Image.ImageDescription is
explicitly unchecked in Settings > Configure digiKam > Metadata > Advanced >
Captions.

Meanwhile, the new caption (or deletion) is written properly to the selected
target fields (Xmp.dc.description and Iptc.Application2.Caption).

Isolating the problem behavior:
•       Occurs:
o       Updating the caption on a previously-captioned JPEG that has face tags
(stored in digiKam's database and XMP sidecar). Result: EXIF:ImageDescription
is created/populated with the old caption; Xmp.dc.description and
Iptc.Application2.Caption receive the new caption.
o       Deleting the caption on a previously-captioned JPEG that has face tags.
Result: EXIF:ImageDescription is populated with the deleted caption;
Xmp.dc.description and Iptc.Application2.Caption are cleared.

•       Does NOT Occur:
o       Previously-captioned JPEGs without face tags (handled cleanly;
EXIF:ImageDescription is not written).
o       Previously-uncaptioned JPEGs with face tags (handled cleanly;
EXIF:ImageDescription is not written).
o       Previously-uncaptioned JPEGs without face tags (handled cleanly).

•       Backend Independence:
o       Reproduced identically with both Exiv2 (default backend) and ExifTool
("Delegate to ExifTool backend all operations to write metadata to files"
checked), indicating the stale caption is injected into the
EXIF:ImageDescription write payload by digiKam's metadata serialization layer
before reaching the backend writer.
•       Independence of original tag source
o       Reproduced identically with files whose caption had originally been
written using digiKam, and files whose caption had originally been written
using other apps (written to XMP Description and IPTC Caption, the same as my
digiKam settings)

Relevant Metadata Settings
In my case face tags exist in digiKam’s database and in XMP sidecar files, but
I haven’t been writing them to image metadata. I keep digiKam set to “write to
XMP sidecar only”, and change configuration to “Write to item and XMP sidecar”
only when I want to write/edit a caption, or adjust the time/date on a file.
[I would like if digiKam allowed writing *some* metadata changes to files so I
could keep face-tag information only in XMP sidecars, but that is just a
request and not central to the bug that I am reporting here.]
•       Metadata > Behavior > Sidecars: Write to item and XMP sidecar (occurs
when face tags exist in XMP sidecar prior to editing).
•       Metadata > Behavior > Write this information to the Metadata: Captions
and title checked; Face tags (including face areas) checked.
•       Metadata > Advanced > Captions (Write):
o       Xmp.dc.description: Checked
o       Iptc.Application2.Caption: Checked
o       Exif.Image.ImageDescription: Unchecked

Steps to Reproduce
1.      In Settings > Configure digiKam > Metadata > Advanced > Captions,
uncheck Exif.Image.ImageDescription under Write options, leaving only
Xmp.dc.description and Iptc.Application2.Caption checked.
2.      Select a JPEG that has face-region metadata and an existing caption
(stored in Xmp.dc.description and Iptc.Application2.Caption, with no
EXIF:ImageDescription present in the file).
3.      In the right-hand Captions sidebar, change the caption text (or delete
the caption text completely) and click Apply.
4.      Inspect the updated JPEG with ExifTool (exiftool -a -G1 -s file.jpg).

Observed Result
[EXIF] ImageDescription is added to the JPEG containing the pre-edit (stale)
caption, while [XMP-dc] Description and [IPTC] Caption-Abstract reflect the new
caption (or are removed if deleted). On Windows, this causes Windows Explorer
Properties to display the stale caption under both "Title" and "Subject".

Expected Result
When Exif.Image.ImageDescription is unchecked in Metadata > Advanced >
Captions, digiKam should not write to EXIF:ImageDescription at all, regardless
of whether face-tag metadata is present on the item.

System / Component Info
•       digikam version 9.1.0
•       Exiv2: 0.28.8
•       ExifTool: 13.63
•       OS: Windows 11, version 26H2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to