From 1e3dd2780a9493810ace428e20f7d20abbdefcd1 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 1 Oct 2024 12:44:46 -0400 Subject: [PATCH] Fix detecting some tiff files --- imagedephi/utils/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagedephi/utils/image.py b/imagedephi/utils/image.py index 96ea1811..89bfb875 100644 --- a/imagedephi/utils/image.py +++ b/imagedephi/utils/image.py @@ -14,6 +14,6 @@ def get_file_format_from_path(image_path: Path) -> FileFormat | None: data = open(image_path, "rb").read(132) if data[128:] == b"DICM": return FileFormat.DICOM - elif data[:4] in (b"II\x2a\x00", b"MM\x00\x2a", b"II\x2b\x2a", b"MM\x00\x2b"): + elif data[:4] in (b"II\x2a\x00", b"MM\x00\x2a", b"II\x2b\x00", b"MM\x00\x2b"): return FileFormat.TIFF return None