mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 01:56:40 +02:00
Recognize JPEG-XR (.jxr) files
This commit is contained in:
parent
cc5d806c6e
commit
bf39b865a3
1 changed files with 2 additions and 1 deletions
|
|
@ -167,6 +167,8 @@ def test_gif(h):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue