we know that we create very large images, so remove size limits

pull/24/head
Hartmut Holzgraefe 2018-04-29 13:18:29 +02:00
rodzic 4d0b2a4ab5
commit 5c425cd317
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -474,6 +474,7 @@ class JobRenderer(threading.Thread):
subprocess.check_call(mogrify_cmd) subprocess.check_call(mogrify_cmd)
elif 'png' in RENDERING_RESULT_FORMATS: elif 'png' in RENDERING_RESULT_FORMATS:
Image.MAX_IMAGE_PIXELS = None
img = Image.open(prefix + '.png') img = Image.open(prefix + '.png')
img.save(prefix + '.jpg', quality=50) img.save(prefix + '.jpg', quality=50)
img.thumbnail((200, 200), Image.ANTIALIAS) img.thumbnail((200, 200), Image.ANTIALIAS)