Recognize JPEG-XR (.jxr) files

This commit is contained in:
Kovid Goyal 2016-12-13 12:49:46 +05:30
parent cc5d806c6e
commit bf39b865a3

View File

@ -167,6 +167,8 @@ tests.append(test_gif)
def test_tiff(h):
"""TIFF (can be in Motorola or Intel byte order)"""
if h[:2] in (b'MM', b'II'):
if h[2:4] == b'\xbc\x01':
return 'jxr'
return 'tiff'
tests.append(test_tiff)
@ -257,4 +259,3 @@ def test_svg(h):
return 'svg'
tests.append(test_svg)