mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
better thumbnail generation for smaller files
This commit is contained in:
parent
c596fe6782
commit
743ce1dc14
1 changed files with 4 additions and 2 deletions
|
|
@ -51,7 +51,8 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
try:
|
||||
run_convert(
|
||||
self.CONVERT,
|
||||
"-scale", "500x5000",
|
||||
"-density", "300",
|
||||
"-scale", "500x5000>",
|
||||
"-alpha", "remove",
|
||||
"-strip", "-trim",
|
||||
"{}[0]".format(self.document_path),
|
||||
|
|
@ -76,7 +77,8 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
# then run convert on the output from gs
|
||||
run_convert(
|
||||
self.CONVERT,
|
||||
"-scale", "500x5000",
|
||||
"-density", "300",
|
||||
"-scale", "500x5000>",
|
||||
"-alpha", "remove",
|
||||
"-strip", "-trim",
|
||||
gs_out_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue