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:
@@ -440,7 +440,7 @@ def render_innertile(dest, name, imgformat):
|
|||||||
|
|
||||||
# Save it
|
# Save it
|
||||||
if imgformat == 'jpg':
|
if imgformat == 'jpg':
|
||||||
img.save(imgpath, quality=95, optimize=True, subsampling=0)
|
img.save(imgpath, quality=95, subsampling=0)
|
||||||
else: # png
|
else: # png
|
||||||
img.save(imgpath)
|
img.save(imgpath)
|
||||||
with open(hashpath, "wb") as hashout:
|
with open(hashpath, "wb") as hashout:
|
||||||
|
|||||||
Reference in New Issue
Block a user