1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

Fix png transparency (#1136)

* remove transparency

* pop transparency
This commit is contained in:
Alex Xu
2025-10-25 18:45:10 -07:00
committed by GitHub
parent b9cef59912
commit 2a8f8e9ab4

View File

@@ -422,7 +422,7 @@ class ComicPage:
def save_with_codec(self, image, targetPath):
if self.opt.forcepng:
image.info["transparency"] = None
image.info.pop('transparency', None)
if self.opt.iskindle and ('MOBI' in self.opt.format or 'EPUB' in self.opt.format):
targetPath += '.gif'
image.save(targetPath, 'GIF', optimize=1, interlace=False)