Aerilius / eog_panorama

Panorama viewer plugin for the 'Eye of Gnome' image viewer
GNU General Public License v3.0
32 stars 1 forks source link

Exiv2 fails to read metadata on images with duplicate tags #9

Open Aerilius opened 7 years ago

Aerilius commented 7 years ago

Some photos that have correct GPano tags do not trigger the panorama viewer. This is because exiv2 fails to read any metadata if only some tags are inconsistent or duplicate. It seems duplicate tags are however common.

$ exiv2 -px example_duplicate_tags.jpg 
Error: XMP Toolkit error 203: Duplicate property or field node
Warning: Failed to decode XMP metadata.
example_duplicate_tags.jpg: (No XMP data found in the file)

example_duplicate_tags.jpg.zip

Aerilius commented 7 years ago

Probably have to revert commit https://github.com/Aerilius/eog_panorama/commit/54b7f043e5b090895cde4fd84abd2343330f24cc back to using exiftool. While exiv2 is used by many Gnome softwares, it's not in a default Ubuntu install, so we get a different but no extra dependency.