Enhancement: support heic images

This commit is contained in:
shamoon 2025-04-22 23:44:03 -07:00
parent 5a278381e3
commit 343dae8045
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class RasterisedDocumentParser(DocumentParser):
"image/bmp", "image/bmp",
"image/gif", "image/gif",
"image/webp", "image/webp",
"image/heic",
] ]
def has_alpha(self, image) -> bool: def has_alpha(self, image) -> bool:

View File

@ -16,5 +16,6 @@ def tesseract_consumer_declaration(sender, **kwargs):
"image/gif": ".gif", "image/gif": ".gif",
"image/bmp": ".bmp", "image/bmp": ".bmp",
"image/webp": ".webp", "image/webp": ".webp",
"image/heic": ".heic",
}, },
} }