From 48ee42419ce85191d8f6b6dcf9412b67ffc3d983 Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:16:41 +0200 Subject: [PATCH] :white_check_mark: ensure HEIF support --- mindee/input/local_input_source.py | 3 ++- tests/data | 2 +- tests/input/test_inputs.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mindee/input/local_input_source.py b/mindee/input/local_input_source.py index e22fef8e..1a8ecf15 100644 --- a/mindee/input/local_input_source.py +++ b/mindee/input/local_input_source.py @@ -23,11 +23,12 @@ pdfium = None # pylint: disable=invalid-name mimetypes.add_type("image/heic", ".heic") -mimetypes.add_type("image/heic", ".heif") +mimetypes.add_type("image/heif", ".heif") ALLOWED_MIME_TYPES = [ "application/pdf", "image/heic", + "image/heif", "image/png", "image/jpg", "image/jpeg", diff --git a/tests/data b/tests/data index 13093f3a..2d7fcf8f 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit 13093f3a48de212ef26889df71199c1a2a9d1478 +Subproject commit 2d7fcf8f591f6d7f40e39862965325e6a8a21874 diff --git a/tests/input/test_inputs.py b/tests/input/test_inputs.py index 5acb4129..e4d97c72 100644 --- a/tests/input/test_inputs.py +++ b/tests/input/test_inputs.py @@ -56,6 +56,7 @@ def test_pdf_input_from_url(): # ("receipt.jpga", "image/jpeg"), ("receipt.png", "image/png"), ("receipt.heic", "image/heic"), + ("receipt.heif", "image/heif"), )