Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mindee/input/local_input_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/data
1 change: 1 addition & 0 deletions tests/input/test_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)


Expand Down