I was able to reproduce the issue using a 360 GoPro Fusion picture.
For some reason GoPro Fusion was adding 2 APP1 markers: the first for XMP tags and the second for EXIF tags.
After executing piexif.insert() there were 3 APP1 markers
new APP1 EXIF with the data from piexif.insert()
original APP1 XMP
original APP1 EXIF
Note: exiftool output the data from original APP1 EXIF
With this PR, after executing piexif.insert() the result is
This PR fixes multiple APP1 Exif markers.
I was able to reproduce the issue using a 360 GoPro Fusion picture. For some reason GoPro Fusion was adding 2 APP1 markers: the first for XMP tags and the second for EXIF tags.
After executing
piexif.insert()
there were 3 APP1 markerspiexif.insert()
exiftool
output the data from original APP1 EXIFWith this PR, after executing
piexif.insert()
the result is