mirror of https://github.com/M66B/FairEmail.git
Remove some more EXIF tags
This commit is contained in:
parent
46aaaf3abf
commit
52cfc99355
|
@ -2839,12 +2839,33 @@ public class FragmentCompose extends FragmentBase {
|
|||
if (privacy)
|
||||
try {
|
||||
ExifInterface exif = new ExifInterface(file.getAbsolutePath());
|
||||
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_ALTITUDE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_ALTITUDE, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_SPEED_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_SPEED, null);
|
||||
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_LATITUDE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_LATITUDE, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_LONGITUDE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_LONGITUDE, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_BEARING_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_BEARING, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_DISTANCE_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_DEST_DISTANCE, null);
|
||||
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_IMG_DIRECTION, null);
|
||||
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_TRACK_REF, null);
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_TRACK, null);
|
||||
|
||||
exif.setAttribute(ExifInterface.TAG_GPS_AREA_INFORMATION, null);
|
||||
|
||||
exif.saveAttributes();
|
||||
} catch (IOException ex) {
|
||||
Log.w(ex);
|
||||
|
|
Loading…
Reference in New Issue