Bug 480775 - ASCII in caption
Summary: ASCII in caption
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Captions (other bugs)
Version First Reported In: 8.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-03 13:25 UTC by Deconchat Marc
Modified: 2025-06-19 04:13 UTC (History)
3 users (show)

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


Attachments
ASCII in caption field (103.36 KB, image/png)
2024-02-03 13:25 UTC, Deconchat Marc
Details
Example image (3.29 MB, image/jpeg)
2025-06-17 16:15 UTC, Ken Rushia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Deconchat Marc 2024-02-03 13:25:19 UTC
Created attachment 165493 [details]
ASCII in caption field

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

When caption is empty, it displays "ASCII" as  content

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2024-02-03 14:00:15 UTC
This entry can only arise from the Exif user comment, I suspect incorrect coding within your image. In order to analyze this, we need the image. If not public, on my private email.

Maik
Comment 2 caulier.gilles 2025-04-11 18:13:42 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

https://files.kde.org/digikam/

Thanks in advance
Best regards

Gilles Caulier
Comment 3 Ken Rushia 2025-06-17 16:15:17 UTC
Created attachment 182336 [details]
Example image

"ASCII" shown in caption in digikam, but no caption tag seen when using exiftool
Comment 4 caulier.gilles 2025-06-18 06:04:04 UTC
Ken,

I'm not sure to understand what you mean. I downloaded your JPEG file, "ASCII" is well displayed in caption field, and ?

Best

Gilles Caulier
Comment 5 caulier.gilles 2025-06-18 06:05:35 UTC
Ah ok, it show "ASCII" even the Exif comment is empty...
Comment 6 caulier.gilles 2025-06-18 06:07:47 UTC
In metadata view from the right sidebar, the Exif/Comment tag decoded by Exiv2 show "ASCII". This is why digiKam show "ASCII" in comment field.

The problem come from Exiv2 library
Comment 7 Maik Qualmann 2025-06-18 06:13:57 UTC
We're currently leaving the ASCII decoding to EXiv2, and we're doing the Unicode decoding ourselves due to bugs.

When I look in the hex editor, Exiv2 should actually display something like this:

Yaw:255.22284,Pitch:4.973536182626138,Roll:-4.4172657130717425.278544.2025:05:20 13:11:42

I'll have to take a closer look.

Maik
Comment 8 Maik Qualmann 2025-06-18 06:17:59 UTC
If reading metadata with ExifTool is enabled in digiKam, the correct comment is displayed.

Maik
Comment 9 Maik Qualmann 2025-06-19 04:13:01 UTC
Git commit afa85356b6e4f394e4d6e19ae0d707e61973e0ab by Maik Qualmann.
Committed on 19/06/2025 at 04:12.
Pushed by mqualmann into branch 'master'.

decode Exif comment itself to fix an Exiv2 bug
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +11   -4    core/libs/metadataengine/engine/metaengine_p.cpp

https://invent.kde.org/graphics/digikam/-/commit/afa85356b6e4f394e4d6e19ae0d707e61973e0ab