Chore: pass is_image to zone OCR instead of sniffing the file type

This commit is contained in:
stumpylog committed 2026-11-20 09:20:25 -08:00
1 parent ccbff94208
commit f0c91bbd59
5 files changed
+102 -64

No files matched your search

+2
View File
@@ -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