better thumbnail generation for smaller files

This commit is contained in:
Jonas Winkler 2020-10-26 01:05:23 +01:00
parent c596fe6782
commit 743ce1dc14

View File

@ -51,7 +51,8 @@ class RasterisedDocumentParser(DocumentParser):
try: try:
run_convert( run_convert(
self.CONVERT, self.CONVERT,
"-scale", "500x5000", "-density", "300",
"-scale", "500x5000>",
"-alpha", "remove", "-alpha", "remove",
"-strip", "-trim", "-strip", "-trim",
"{}[0]".format(self.document_path), "{}[0]".format(self.document_path),
@ -76,7 +77,8 @@ class RasterisedDocumentParser(DocumentParser):
# then run convert on the output from gs # then run convert on the output from gs
run_convert( run_convert(
self.CONVERT, self.CONVERT,
"-scale", "500x5000", "-density", "300",
"-scale", "500x5000>",
"-alpha", "remove", "-alpha", "remove",
"-strip", "-trim", "-strip", "-trim",
gs_out_path, gs_out_path,