Remove piexifjs annotation
This commit is contained in:
parent
ad8b2280b2
commit
d04404582b
@ -6,7 +6,7 @@ export const stripGpsFromFile = async (
|
||||
const base64 = Buffer.from(fileBytes).toString('base64');
|
||||
const base64Url = `data:image/jpeg;base64,${base64}`;
|
||||
|
||||
const exifObject = PiExif.load(base64Url) as Record<string, any>;
|
||||
const exifObject = PiExif.load(base64Url);
|
||||
delete exifObject.GPS;
|
||||
const exifDataWithoutGps = PiExif.dump(exifObject);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user