I am using piexifjs to scrub GPS data. After loading the exif data with .load I set the GPS field to {} and then wrote the modified data with .insert. The GPS fields are correctly removed however I've noticed some other unexpected modifications to the output exif data after comparing the resulting image with the original using exiftool.
EXIF lost the Interoperability Version field
The Scene Type field was changed from Directly photographed to Unknown (49)
The Thumbnail Offset field was changed from 1160 to 906 (but i suspect this is expected since there are no longer all the GPS fields that were originally present)
I am using piexifjs to scrub GPS data. After loading the exif data with
.load
I set the GPS field to{}
and then wrote the modified data with.insert
. The GPS fields are correctly removed however I've noticed some other unexpected modifications to the output exif data after comparing the resulting image with the original usingexiftool
.Interoperability Version
fieldScene Type
field was changed fromDirectly photographed
toUnknown (49)
Thumbnail Offset
field was changed from 1160 to 906 (but i suspect this is expected since there are no longer all the GPS fields that were originally present)