mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 04:52:40 +00:00
Chore: pass is_image to zone OCR instead of sniffing the file type
This commit is contained in:
1 parent
ccbff94208
commit
f0c91bbd59
5 files changed
+102
-64
No files matched your search
@@ -5966,6 +5966,8 @@ class OcrTemplateViewSet(BulkPermissionMixin, PassUserMixin, ModelViewSet[OcrTem
|
||||
zone.zone_source_width or 0,
|
||||
zone.zone_source_height or 0,
|
||||
document.page_count,
|
||||
is_image=document.archive_path is None
|
||||
and document.mime_type.startswith("image/"),
|
||||
)
|
||||
|
||||
regex_match = None
|
||||
|
||||
Reference in new issue
Block a user