Browse Source

Stricter EXIF header check.

debian-sid
Tom Payne 14 years ago
parent
commit
e302b1557a
  1. 2
      igc2kmz/exif.py

2
igc2kmz/exif.py

@ -223,7 +223,7 @@ IFD_POINTER_IDS = {
def exif(data):
if data[0:4] != 'Exif':
if data[0:6] != 'Exif\0\0':
raise SyntaxError, 'Unrecognised EXIF header %s' % repr(data[0:6])
tiff = Tiff(data[6:])
result = {}

Loading…
Cancel
Save