Skip to content

Commit

Permalink
Strip the thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 17, 2019
1 parent 7a9d985 commit daca77c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/paperless_tesseract/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def get_thumbnail(self):
self.CONVERT,
"-scale", "500x5000",
"-alpha", "remove",
"-strip", "-trim",
"{}[0]".format(self.document_path),
out_path
)
Expand All @@ -77,6 +78,7 @@ def get_thumbnail(self):
self.CONVERT,
"-scale", "500x5000",
"-alpha", "remove",
"-strip", "-trim",
gs_out_path,
out_path
)
Expand Down

0 comments on commit daca77c

Please sign in to comment.