mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-06-20 15:17:32 -05:00
Enhancement: support heic images
This commit is contained in:
parent
5a278381e3
commit
343dae8045
@ -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:
|
||||||
|
@ -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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user