diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/imghdr.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/imghdr.py b/Lib/imghdr.py index dc5fb22..2fbc966 100644 --- a/Lib/imghdr.py +++ b/Lib/imghdr.py @@ -101,6 +101,13 @@ def test_jpeg(h, f): tests.append(test_jpeg) +def test_exif(h, f): + """JPEG data in Exif format""" + if h[6:10] == 'Exif': + return 'jpeg' + +tests.append(test_exif) + def test_bmp(h, f): if h[:2] == 'BM': return 'bmp' |