diff --git a/src/calibre/utils/imghdr.py b/src/calibre/utils/imghdr.py index fbb827d0fa..78e4a7efe0 100644 --- a/src/calibre/utils/imghdr.py +++ b/src/calibre/utils/imghdr.py @@ -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) -