Skip to content

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

better thumbnail generation for smaller files

Jonas Winkler743ce1dc14b2
diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py
index fd7077834..eeca540b1 100644
--- a/src/paperless_tesseract/parsers.py
+++ b/src/paperless_tesseract/parsers.py
@@ -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,