0

Disable chroma subsampling when saving JPEGs.

This commit is contained in:
Alex Jurkiewicz
2010-09-27 23:47:03 +10:00
parent 157eed9893
commit 59481969a9

View File

@@ -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) img.save(imgpath, quality=95, optimize=True, subsampling=0)
else: # png else: # png
img.save(imgpath) img.save(imgpath)
with open(hashpath, "wb") as hashout: with open(hashpath, "wb") as hashout: