From 991a46c4f0344f99c22329a6e9b16e505ae6e725 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Fri, 4 Dec 2020 12:44:02 +0100 Subject: [PATCH] disabled thumbnail trimming. --- src/paperless_tesseract/parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index 66001286c..454617728 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -31,7 +31,7 @@ class RasterisedDocumentParser(DocumentParser): scale="500x5000>", alpha="remove", strip=True, - trim=True, + trim=False, input_file="{}[0]".format(document_path), output_file=out_path, logging_group=self.logging_group) @@ -55,7 +55,7 @@ class RasterisedDocumentParser(DocumentParser): scale="500x5000>", alpha="remove", strip=True, - trim=True, + trim=False, input_file=gs_out_path, output_file=out_path, logging_group=self.logging_group)