You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
How it looks in PiGallery2:
Screenshot of database contents:
How Gimp interprets the metadata:
How digiKam interprets the metadata:
Working on linux, browser is firefox.
The used app version is release 2.0.0.
The text was updated successfully, but these errors were encountered:
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:
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](https://private-user-images.githubusercontent.com/192204/343331589-7d4228b3-0130-421b-a406-61a0159139be.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzI3NDYsIm5iZiI6MTcyNDczMjQ0NiwicGF0aCI6Ii8xOTIyMDQvMzQzMzMxNTg5LTdkNDIyOGIzLTAxMzAtNDIxYi1hNDA2LTYxYTAxNTkxMzliZS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwNDIwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNDRmYTY4MGNiNDE2YjcyZmU1YzVkNzZiODYyNWRkNmM0YmVkMTE3MzVkMzc3NGUzNDU2ZWE5YTFhMzE4OGU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gO8Y3xFfHsYtU9IQ92KDfmF3epXpN95tuc8jazHDTKQ)
How it looks in PiGallery2:
![screenshot_pigallery](https://private-user-images.githubusercontent.com/192204/343331783-228b304c-efe1-4e10-9d27-155580557179.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzI3NDYsIm5iZiI6MTcyNDczMjQ0NiwicGF0aCI6Ii8xOTIyMDQvMzQzMzMxNzgzLTIyOGIzMDRjLWVmZTEtNGUxMC05ZDI3LTE1NTU4MDU1NzE3OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwNDIwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NmVkYjhkZGE3NDEzMTI2NTk5YTcwOWRkN2NmNWI0ZWQxZjVhNTIwOWM0YjNjZWJmYzQ5NGNjZDcyOTE0MTAxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.FmD8h7FVNZ0WLZNtj1om0mhxCkpCbcrnoSuBN8ACgzM)
Screenshot of database contents:
![screenshot_sqlite](https://private-user-images.githubusercontent.com/192204/343331822-0c7fd84e-09b9-4d8a-90dd-ae2db380685e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzI3NDYsIm5iZiI6MTcyNDczMjQ0NiwicGF0aCI6Ii8xOTIyMDQvMzQzMzMxODIyLTBjN2ZkODRlLTA5YjktNGQ4YS05MGRkLWFlMmRiMzgwNjg1ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwNDIwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZTc0MzYyNDAyZGFlZWNjNWI1MjI5NTQ4MDlkMjcyYTkyMTk5NzJlZTY5ODY2YThlZTYwMWMyYmY2MTE5NTJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.fRAk6t-5kUJRGbXLmqmuhQdwGDHIOzFN0BLt7Ntw59s)
How Gimp interprets the metadata:
![screenshot_gimp](https://private-user-images.githubusercontent.com/192204/343331926-40d35396-dd69-4e0f-9584-3ec3b19a2125.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzI3NDYsIm5iZiI6MTcyNDczMjQ0NiwicGF0aCI6Ii8xOTIyMDQvMzQzMzMxOTI2LTQwZDM1Mzk2LWRkNjktNGUwZi05NTg0LTNlYzNiMTlhMjEyNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwNDIwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMzliMTJhOTk3YjQwYzQyODJjNWFlMjEyZGZhYjI4ZmQzN2FkZjk0NjcxNTYyMWViZDkzOWJkZWJkN2UyOWU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Yh5DlFnRY8oHq3IsgJsIzumT6Huy06-RR3VGgCJa6EI)
How digiKam interprets the metadata:
![screenshot_digikam](https://private-user-images.githubusercontent.com/192204/343332521-e8389f2b-853c-4563-8639-cda841cb995f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MzI3NDYsIm5iZiI6MTcyNDczMjQ0NiwicGF0aCI6Ii8xOTIyMDQvMzQzMzMyNTIxLWU4Mzg5ZjJiLTg1M2MtNDU2My04NjM5LWNkYTg0MWNiOTk1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwNDIwNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMmJlYWIzNmIxMmM1NDUyYzJlMjBjOWEwOTRkOWRlYWJlMjZlMTIzOGU4YjIyNGYwYmEzMTYwODI2NzJiOGM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BHJ1xgu5DXaLf9Y8_6oXZO6z6fmpiTm-Cycf-BXBA-I)
Working on linux, browser is firefox.
The used app version is release 2.0.0.
The text was updated successfully, but these errors were encountered: