Bug 501770 - JXL - Tag deletion misses XP Keywords
Summary: JXL - Tag deletion misses XP Keywords
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-ExifTool (show other bugs)
Version: 8.6.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: stephan.laenge
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-19 23:56 UTC by stephan.laenge
Modified: 2025-03-21 15:29 UTC (History)
2 users (show)

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


Attachments
Test image (2.13 KB, image/jpeg)
2025-03-21 12:08 UTC, stephan.laenge
Details
Test jxl (1.74 KB, image/jxl)
2025-03-21 12:08 UTC, stephan.laenge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stephan.laenge 2025-03-19 23:56:37 UTC
SUMMARY
When deleting tags, ExifTool misses 'XPKeywords'.
Ordinary .jpg files are not affected.

STEPS TO REPRODUCE
1. Configure digiKam -> Reading and Writing Metadata -> Use ExifTool backend = y, Delegate to ExifTool = y
2. Open a JPEG XL image. Assign tag: t1234
3. Run 'exiftool image.jxl | grep t1234'
--------------------
Categories                      : <Categories><Category Assigned="1">t1234</Category></Categories>
XP Keywords                     : t1234
Last Keyword XMP                : t1234
Subject                         : t1234
Tags List                       : t1234
Hierarchical Subject            : t1234
Catalog Sets                    : t1234
--------------------
4. Right click -> Remove all tags
5. Run 'exiftool image.jxl | grep t1234'
--------------------
XP Keywords                     : t1234
--------------------

OBSERVED RESULT
XP Keywords is still present


EXPECTED RESULT
XP Keywords is removed

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.16-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT

Thx for the awesome program by the way.
Comment 1 caulier.gilles 2025-03-20 03:40:44 UTC
It's reproducible with last 8.6.0 ?
Which Exiftool version did you use ?
Comment 2 Maik Qualmann 2025-03-20 06:59:34 UTC
I can't reproduce the problem. XP keywords can be assigned and removed from most of my JXL images. I have a JXL image (it was a bug report problem image) for which ExifTool doesn't write XP keywords.

That would probably be an ExifTool issue as well.

We need a sample image to investigate the issue further.

Maik
Comment 3 stephan.laenge 2025-03-20 10:56:04 UTC
I was using the 8.5.0 Flatpak, because 8.6.0 is not on Flathub (yet).
I think this means i have ExifTool 12.52:

exiftool image.jxl | grep 12.52
XMP Toolkit                     : Image::ExifTool 12.52

Now i also tried the 8.6.0 package with ExifTool 13.25 in a Arch VM. It works! The XPKeywords get deleted!
I guess i should have waited just a day or two more.
Comment 4 stephan.laenge 2025-03-21 12:06:57 UTC
Bad news: digiKam 8.6.0 got just released on Flathub, so i had to try it out immeditately.

Unfortunately the bug is still present.
I suspect this is because the Flatpak still uses ExifTool 12.52, just like the 8.5.0-Flatpak: https://github.com/flathub/org.kde.digikam/blob/master/org.kde.digikam.json
On Arch it was using ExifTool 13.25.

How to create a image that is affected by this problem:
1. Create a test jpg with the GIMP-3.0 Flatpak. (I attached one to this bug report)
2. Run 'cjxl --compress_boxes=0 test.jpg test.jxl' (JPEG XL encoder v0.11.1) (I attached one to this bug report)
Comment 5 stephan.laenge 2025-03-21 12:08:06 UTC
Created attachment 179626 [details]
Test image

Added test image
Comment 6 stephan.laenge 2025-03-21 12:08:42 UTC
Created attachment 179627 [details]
Test jxl
Comment 7 Maik Qualmann 2025-03-21 12:29:12 UTC
Here a quick test performed with the Windows version of digiKam (ExifTool 13.19). No problems adding and deleting tags to your Test.jxl, and XPKeywords are also deleted.

Why don't you just use our AppImage? All the Flatpack and Snap digiKam versions are unusable due to the sandbox features.

@Gilles, can we update ExifTool to the latest version in the bundles? There's an issue with setting the rotation flag for HEIF images, which can corrupt the image.

Maik
Comment 8 stephan.laenge 2025-03-21 12:41:47 UTC
I didn't use the AppImage because i prefer Flatpaks over AppImages (Often not working, no AutoUpdate, no sandbox), and when i saw there was a Flatpak that even had the ominous blue checkmark, i just assumed it was official. Now i visited the digiKam website, and saw that the Flatpak is not advertised there, so i guess it's not that official after all.
Comment 9 caulier.gilles 2025-03-21 13:36:04 UTC
>@Gilles, can we update ExifTool to the latest version in the bundles? There's
>an issue with setting the rotation flag for HEIF images, which can corrupt the
>image.

Done...

Gilles
Comment 10 stephan.laenge 2025-03-21 15:27:56 UTC
I just tested the AppImage, and it works.

So i will be using that until the Flatpak catches up.