mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
use archived file for thumbnail, if available
This commit is contained in:
parent
725f43fc43
commit
3f920a84da
@ -53,7 +53,9 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
|
|
||||||
def get_thumbnail(self, document_path, mime_type, file_name=None):
|
def get_thumbnail(self, document_path, mime_type, file_name=None):
|
||||||
return make_thumbnail_from_pdf(
|
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):
|
def is_image(self, mime_type):
|
||||||
return mime_type in [
|
return mime_type in [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user