0

Disable jpeg image optimization to work around a PIL bug.

Ref: http://mail.python.org/pipermail/image-sig/1999-August/000816.html
This commit is contained in:
Alex Jurkiewicz
2010-09-28 17:15:26 +10:00
parent 59481969a9
commit 1f8d8b1343

View File

@@ -440,7 +440,7 @@ def render_innertile(dest, name, imgformat):
# Save it
if imgformat == 'jpg':
img.save(imgpath, quality=95, optimize=True, subsampling=0)
img.save(imgpath, quality=95, subsampling=0)
else: # png
img.save(imgpath)
with open(hashpath, "wb") as hashout: