Disable chroma subsampling when saving JPEGs.
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)
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user