From a13e9f23b1889bec297940c3e1ca54c5203a6373 Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Sun, 21 Feb 2021 23:30:14 +0100 Subject: [PATCH] use archived file for thumbnail, if available --- src/paperless_tesseract/parsers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index ba56a19b7..728c40a56 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -53,7 +53,9 @@ class RasterisedDocumentParser(DocumentParser): def get_thumbnail(self, document_path, mime_type, file_name=None): return make_thumbnail_from_pdf( - document_path, self.tempdir, self.logging_group) + self.archive_path or document_path, + self.tempdir, + self.logging_group) def is_image(self, mime_type): return mime_type in [