exifr
Version:
📷 The fastest and most versatile JavaScript EXIF reading library.
37 lines (35 loc) • 1.05 kB
JavaScript
import {tagKeys, createDictionary} from '../tags.mjs'
createDictionary(tagKeys, 'gps', [
[0x0000, 'GPSVersionID'],
[0x0001, 'GPSLatitudeRef'],
[0x0002, 'GPSLatitude'],
[0x0003, 'GPSLongitudeRef'],
[0x0004, 'GPSLongitude'],
[0x0005, 'GPSAltitudeRef'],
[0x0006, 'GPSAltitude'],
[0x0007, 'GPSTimeStamp'],
[0x0008, 'GPSSatellites'],
[0x0009, 'GPSStatus'],
[0x000A, 'GPSMeasureMode'],
[0x000B, 'GPSDOP'],
[0x000C, 'GPSSpeedRef'],
[0x000D, 'GPSSpeed'],
[0x000E, 'GPSTrackRef'],
[0x000F, 'GPSTrack'],
[0x0010, 'GPSImgDirectionRef'],
[0x0011, 'GPSImgDirection'],
[0x0012, 'GPSMapDatum'],
[0x0013, 'GPSDestLatitudeRef'],
[0x0014, 'GPSDestLatitude'],
[0x0015, 'GPSDestLongitudeRef'],
[0x0016, 'GPSDestLongitude'],
[0x0017, 'GPSDestBearingRef'],
[0x0018, 'GPSDestBearing'],
[0x0019, 'GPSDestDistanceRef'],
[0x001A, 'GPSDestDistance'],
[0x001B, 'GPSProcessingMethod'],
[0x001C, 'GPSAreaInformation'],
[0x001D, 'GPSDateStamp'],
[0x001E, 'GPSDifferential'],
[0x001F, 'GPSHPositioningError'],
])