mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Merge pull request #527 from sbrunner/strip
Strip and trim the thumbnails
This commit is contained in:
commit
6e115bf2e6
@ -53,6 +53,7 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
self.CONVERT,
|
self.CONVERT,
|
||||||
"-scale", "500x5000",
|
"-scale", "500x5000",
|
||||||
"-alpha", "remove",
|
"-alpha", "remove",
|
||||||
|
"-strip", "-trim",
|
||||||
"{}[0]".format(self.document_path),
|
"{}[0]".format(self.document_path),
|
||||||
out_path
|
out_path
|
||||||
)
|
)
|
||||||
@ -77,6 +78,7 @@ class RasterisedDocumentParser(DocumentParser):
|
|||||||
self.CONVERT,
|
self.CONVERT,
|
||||||
"-scale", "500x5000",
|
"-scale", "500x5000",
|
||||||
"-alpha", "remove",
|
"-alpha", "remove",
|
||||||
|
"-strip", "-trim",
|
||||||
gs_out_path,
|
gs_out_path,
|
||||||
out_path
|
out_path
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user