mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Merge pull request #399 from jat255/ENH_convert_only_one_page
Speed up thumbnail generation for PDFs
This commit is contained in:
commit
46cbd10ba0
@ -50,10 +50,11 @@ class RasterisedDocumentParser(DocumentParser):
|
||||
self.CONVERT,
|
||||
"-scale", "500x5000",
|
||||
"-alpha", "remove",
|
||||
self.document_path, os.path.join(self.tempdir, "convert-%04d.png")
|
||||
"{}[0]".format(self.document_path),
|
||||
os.path.join(self.tempdir, "convert.png")
|
||||
)
|
||||
|
||||
return os.path.join(self.tempdir, "convert-0000.png")
|
||||
return os.path.join(self.tempdir, "convert.png")
|
||||
|
||||
def _is_ocred(self):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user