mirror of
https://github.com/ciromattia/kcc
synced 2026-10-18 15:32:33 +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:
+1
-1
@@ -121,7 +121,7 @@ class ComicPage:
|
|||||||
if forcepng:
|
if forcepng:
|
||||||
self.image.save(os.path.join(targetdir, os.path.splitext(filename)[0] + ".png"), "PNG")
|
self.image.save(os.path.join(targetdir, os.path.splitext(filename)[0] + ".png"), "PNG")
|
||||||
else:
|
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:
|
except IOError as e:
|
||||||
raise RuntimeError('Cannot write image in directory %s: %s' % (targetdir, e))
|
raise RuntimeError('Cannot write image in directory %s: %s' % (targetdir, e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user