1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

remove transparency from image info

This commit is contained in:
Alex Xu
2023-03-25 10:43:51 -07:00
committed by darodi
parent 41d24e77e1
commit 9ab1cd359c

View File

@@ -265,6 +265,7 @@ class ComicPage:
if self.fill != 'white':
flags.append('BlackBackground')
if self.opt.forcepng:
self.image.info["transparency"] = None
self.targetPath += '.png'
self.image.save(self.targetPath, 'PNG', optimize=1)
else: