This commit is contained in:
Manav Rathi
2024-07-24 13:00:01 +05:30
parent 0730ba72a6
commit db52780cee

View File

@@ -190,6 +190,14 @@ const parseXMPDate = (xmpTag: ExifReader.XmpTag | undefined) => {
);
};
/**
* Parse GPS location from the metadata embedded in the file.
*/
const parseLocation = (tags: ExifReader.ExpandedTags) => ({
Latitude: tags.gps?.Latitude,
Longitude: tags.gps?.Longitude,
});
/**
* Index Exif in the given {@link EnteFile}.
*