diff options
Diffstat (limited to 'Lib/imghdr.py')
-rw-r--r-- | Lib/imghdr.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/imghdr.py b/Lib/imghdr.py index 063bfe8..62518b5 100644 --- a/Lib/imghdr.py +++ b/Lib/imghdr.py @@ -81,6 +81,12 @@ def test_xbm(h, f): tests.append(test_xbm) +def test_jpeg(h, f): + # JPEG data in JFIF format + if h[6:10] == 'JFIF': + return 'jpeg' + +tests.append(test_jpeg) #--------------------# # Small test program # |