From 1f8d8b1343fc928ea5d022b74df6930139b58a95 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Tue, 28 Sep 2010 17:15:26 +1000 Subject: [PATCH] Disable jpeg image optimization to work around a PIL bug. Ref: http://mail.python.org/pipermail/image-sig/1999-August/000816.html --- quadtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quadtree.py b/quadtree.py index 8a55c4c..3fa32b8 100644 --- a/quadtree.py +++ b/quadtree.py @@ -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: