From 605b66f6400cff847cad4bbd870ca368f2690e00 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 7 Jun 2024 12:40:53 -0500 Subject: [PATCH] Add GPS fields to strip --- src/photo/server.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/photo/server.ts b/src/photo/server.ts index a6056afc..bf39bf1a 100644 --- a/src/photo/server.ts +++ b/src/photo/server.ts @@ -138,10 +138,15 @@ export const removeGpsData = async (image: ArrayBuffer) => generateBase64(image, sharp => sharp .withExifMerge({ IFD3: { - GPSLatitudeRef: '', - GPSLatitude: '', - GPSLongitudeRef: '', - GPSLongitude: '', + GPSVersionID: '-', + GPSMapDatum: '-', + GPSLatitudeRef: '-', + GPSLatitude: '-', + GPSLongitudeRef: '-', + GPSLongitude: '-', + GPSTimeStamp: '-', + GPSAltitude: '-', + GPSAltitudeRef: '-', }, }) );