mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Recognize JPEG-XR (.jxr) files
This commit is contained in:
parent
cc5d806c6e
commit
bf39b865a3
@ -167,6 +167,8 @@ tests.append(test_gif)
|
|||||||
def test_tiff(h):
|
def test_tiff(h):
|
||||||
"""TIFF (can be in Motorola or Intel byte order)"""
|
"""TIFF (can be in Motorola or Intel byte order)"""
|
||||||
if h[:2] in (b'MM', b'II'):
|
if h[:2] in (b'MM', b'II'):
|
||||||
|
if h[2:4] == b'\xbc\x01':
|
||||||
|
return 'jxr'
|
||||||
return 'tiff'
|
return 'tiff'
|
||||||
|
|
||||||
tests.append(test_tiff)
|
tests.append(test_tiff)
|
||||||
@ -257,4 +259,3 @@ def test_svg(h):
|
|||||||
return 'svg'
|
return 'svg'
|
||||||
|
|
||||||
tests.append(test_svg)
|
tests.append(test_svg)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user