1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-06 21:39:29 +00:00

Decreasing quality

File size/quality ratio is too high. It is not worth it.
Sadly huffman table optimization build-in PIL is just simply broken.
This commit is contained in:
Paweł Jastrzębski
2013-03-20 21:12:30 +01:00
parent 25a1dcb72c
commit 57d7729d05

View File

@@ -121,7 +121,7 @@ class ComicPage:
if forcepng:
self.image.save(os.path.join(targetdir, os.path.splitext(filename)[0] + ".png"), "PNG")
else:
self.image.save(os.path.join(targetdir, os.path.splitext(filename)[0] + ".jpg"), "JPEG", quality=95)
self.image.save(os.path.join(targetdir, os.path.splitext(filename)[0] + ".jpg"), "JPEG")
except IOError as e:
raise RuntimeError('Cannot write image in directory %s: %s' % (targetdir, e))