Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non ASCII characters (accents, umlauts) in face tags are displayed incorrectly #917

Closed
stkr opened this issue Jun 26, 2024 · 1 comment
Closed

Comments

@stkr
Copy link

stkr commented Jun 26, 2024

In an image that has XMP metadata, non-ascii characters are displayed wrongly for face regions.

In the attached image, the person Lena Forsén is found in the metadata three times:

  • as face region (XMP-mwg-rs:RegionInfo) with the value "Lena Forsén" which is used for PiGallery's "faces"
  • as person in image (XMP-iptcExt:PersonInImage) with the value "Lena Forsén as person in image" which is not used by PiGallery
  • as subject (XMP-dc:Subject) with the value "Lena Forsén as keyword" which is used by PiGallery2 "keyword/tag"

The metadata was written with ExifTool 12.76, the character encoding for all three instances is UTF-8.
PiGallery2 displays the "keyword" version of the metadata as expected, for the "faces" version of the metadata the é (e with accent) gets displayed wrongly. I have seen the same happen also for other non-ascii characters - in particular german umlauts.

I am using sqlite as database, the strings found in the database are already unexpected (see screenshot from sqlite), so I am guessing something goes wrong then reading the metadata.

Note, this could be a duplicate of #650, however. I do not see a problem with the encoding of my particular image. If there is, please help me to figure out what it is. The image metadata is correctly displayed with digiKam, and Gimp and also on online services like https://jimpl.com/ and even the exifr playground (https://mutiny.cz/exifr/).

The problematic image:
lenna_unlinked


How it looks in PiGallery2:
screenshot_pigallery


Screenshot of database contents:
screenshot_sqlite


How Gimp interprets the metadata:
screenshot_gimp


How digiKam interprets the metadata:
screenshot_digikam

Working on linux, browser is firefox.
The used app version is release 2.0.0.

@bpatrik
Copy link
Owner

bpatrik commented Jun 28, 2024

Last commit should fix it:
kép

(please reopen if the issue still persist)

the fix should be in :edge in ~40 mins.

@bpatrik bpatrik added the bug label Jun 28, 2024
@bpatrik bpatrik added this to the Next (probably v2.5) milestone Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants