@@ -303,79 +303,79 @@ class Base(IntEnum):
303
303
304
304
305
305
class GPS (IntEnum ):
306
- GPSVersionID = 0
307
- GPSLatitudeRef = 1
308
- GPSLatitude = 2
309
- GPSLongitudeRef = 3
310
- GPSLongitude = 4
311
- GPSAltitudeRef = 5
312
- GPSAltitude = 6
313
- GPSTimeStamp = 7
314
- GPSSatellites = 8
315
- GPSStatus = 9
316
- GPSMeasureMode = 10
317
- GPSDOP = 11
318
- GPSSpeedRef = 12
319
- GPSSpeed = 13
320
- GPSTrackRef = 14
321
- GPSTrack = 15
322
- GPSImgDirectionRef = 16
323
- GPSImgDirection = 17
324
- GPSMapDatum = 18
325
- GPSDestLatitudeRef = 19
326
- GPSDestLatitude = 20
327
- GPSDestLongitudeRef = 21
328
- GPSDestLongitude = 22
329
- GPSDestBearingRef = 23
330
- GPSDestBearing = 24
331
- GPSDestDistanceRef = 25
332
- GPSDestDistance = 26
333
- GPSProcessingMethod = 27
334
- GPSAreaInformation = 28
335
- GPSDateStamp = 29
336
- GPSDifferential = 30
337
- GPSHPositioningError = 31
306
+ GPSVersionID = 0x00
307
+ GPSLatitudeRef = 0x01
308
+ GPSLatitude = 0x02
309
+ GPSLongitudeRef = 0x03
310
+ GPSLongitude = 0x04
311
+ GPSAltitudeRef = 0x05
312
+ GPSAltitude = 0x06
313
+ GPSTimeStamp = 0x07
314
+ GPSSatellites = 0x08
315
+ GPSStatus = 0x09
316
+ GPSMeasureMode = 0x0A
317
+ GPSDOP = 0x0B
318
+ GPSSpeedRef = 0x0C
319
+ GPSSpeed = 0x0D
320
+ GPSTrackRef = 0x0E
321
+ GPSTrack = 0x0F
322
+ GPSImgDirectionRef = 0x10
323
+ GPSImgDirection = 0x11
324
+ GPSMapDatum = 0x12
325
+ GPSDestLatitudeRef = 0x13
326
+ GPSDestLatitude = 0x14
327
+ GPSDestLongitudeRef = 0x15
328
+ GPSDestLongitude = 0x16
329
+ GPSDestBearingRef = 0x17
330
+ GPSDestBearing = 0x18
331
+ GPSDestDistanceRef = 0x19
332
+ GPSDestDistance = 0x1A
333
+ GPSProcessingMethod = 0x1B
334
+ GPSAreaInformation = 0x1C
335
+ GPSDateStamp = 0x1D
336
+ GPSDifferential = 0x1E
337
+ GPSHPositioningError = 0x1F
338
338
339
339
340
340
"""Maps EXIF GPS tags to tag names."""
341
341
GPSTAGS = {i .value : i .name for i in GPS }
342
342
343
343
344
344
class Interop (IntEnum ):
345
- InteropIndex = 1
346
- InteropVersion = 2
347
- RelatedImageFileFormat = 4096
348
- RelatedImageWidth = 4097
349
- RelatedImageHeight = 4098
345
+ InteropIndex = 0x0001
346
+ InteropVersion = 0x0002
347
+ RelatedImageFileFormat = 0x1000
348
+ RelatedImageWidth = 0x1001
349
+ RelatedImageHeight = 0x1002
350
350
351
351
352
352
class IFD (IntEnum ):
353
- Exif = 34665
354
- GPSInfo = 34853
355
- MakerNote = 37500
356
- Interop = 40965
353
+ Exif = 0x8769
354
+ GPSInfo = 0x8825
355
+ MakerNote = 0x927C
356
+ Interop = 0xA005
357
357
IFD1 = - 1
358
358
359
359
360
360
class LightSource (IntEnum ):
361
- Unknown = 0
362
- Daylight = 1
363
- Fluorescent = 2
364
- Tungsten = 3
365
- Flash = 4
366
- Fine = 9
367
- Cloudy = 10
368
- Shade = 11
369
- DaylightFluorescent = 12
370
- DayWhiteFluorescent = 13
371
- CoolWhiteFluorescent = 14
372
- WhiteFluorescent = 15
373
- StandardLightA = 17
374
- StandardLightB = 18
375
- StandardLightC = 19
376
- D55 = 20
377
- D65 = 21
378
- D75 = 22
379
- D50 = 23
380
- ISO = 24
381
- Other = 255
361
+ Unknown = 0x00
362
+ Daylight = 0x01
363
+ Fluorescent = 0x02
364
+ Tungsten = 0x03
365
+ Flash = 0x04
366
+ Fine = 0x09
367
+ Cloudy = 0x0A
368
+ Shade = 0x0B
369
+ DaylightFluorescent = 0x0C
370
+ DayWhiteFluorescent = 0x0D
371
+ CoolWhiteFluorescent = 0x0E
372
+ WhiteFluorescent = 0x0F
373
+ StandardLightA = 0x11
374
+ StandardLightB = 0x12
375
+ StandardLightC = 0x13
376
+ D55 = 0x14
377
+ D65 = 0x15
378
+ D75 = 0x16
379
+ D50 = 0x17
380
+ ISO = 0x18
381
+ Other = 0xFF
0 commit comments