JPG - the GPS related data is removed after we try to remove the metadata of the JPG file


#1

When we try to remove the GPS data of a JPG file, I notice the following modifications were made:

Fields where data was modified:
GPSAltitudeRef - modified to include the word “reference”.
GPSTimeStamp - data has been modified.
GPSLongtitudeRef - data has been removed.

Fields removed:
GPSLongtitude - field has been removed entirely.
GPSLatitude - field has been removed entirely.

Fields untouched:
GPSTImeStamp
GPSLmgDirection
GPSLmgDirectionRef
GPSAltitude.

They should be all removed. I attached the JPG file and the properties before and after removing metadata.
before.PNG (44.4 KB)
after.PNG (35.4 KB)
IMG_20170512_160233.jpg (1.0 MB)


#2

@Glority_Developer

Apologies for the inconvenience. We have logged this issue in our internal tracking system and will let you know after further investigation.


#3

@Glority_Developer,

Kindly provide us with the sample code that you are using to remove the GPS data and that is causing the above mentioned modifications. Moreover Can you please provide us with source JPEG file and the output file you are getting after removing the data?


#4

Here is the code:

((IExif)format).UpdateExifInfo(exifInfo);
((IExif)format).RemoveGpsLocation();
exifInfo = ((IExif)format).ExifValues;
((IExif)format).UpdateExifInfo(exifInfo);

The images are already attached in the previous post.


#5

@Glority_Developer,
Thank you for providing the code.We’ll get back to you in case of further updates.


#6

@Glority_Developer

The issue you have found earlier (filed as METADATANET-1935) has been fixed in this update.