Browse Source

Fix exposure format

pull/452/head
Simon Conseil 5 years ago
parent
commit
0e9887f67d
  1. 2
      sigal/image.py

2
sigal/image.py

@ -362,7 +362,7 @@ def get_exif_tags(data, datetime_format='%c'):
if 'ExposureTime' in data:
exptime = data['ExposureTime']
if IFDRational and isinstance(exptime, IFDRational):
simple['exposure'] = str(exptime)
simple['exposure'] = f'{exptime.numerator}/{exptime.denominator}'
elif isinstance(exptime, tuple):
try:
simple['exposure'] = str(fractions.Fraction(exptime[0], exptime[1]))

Loading…
Cancel
Save