Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Strip the thumbnails

Stéphane Brunnerdaca77cc1b84
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py
index c2db5a056..fd7077834 100644
--- a/src/paperless_tesseract/parsers.py
+++ b/src/paperless_tesseract/parsers.py
@@ -53,6 +53,7 @@ class RasterisedDocumentParser(DocumentParser):
self.CONVERT,
"-scale", "500x5000",
"-alpha", "remove",
+ "-strip", "-trim",
"{}[0]".format(self.document_path),
out_path
)
@@ -77,6 +78,7 @@ class RasterisedDocumentParser(DocumentParser):
self.CONVERT,
"-scale", "500x5000",
"-alpha", "remove",
+ "-strip", "-trim",
gs_out_path,
out_path
)