mirror of
https://github.com/ciromattia/kcc
synced 2025-12-21 05:31:49 +00:00
remove transparency from image info
This commit is contained in:
@@ -265,6 +265,7 @@ class ComicPage:
|
|||||||
if self.fill != 'white':
|
if self.fill != 'white':
|
||||||
flags.append('BlackBackground')
|
flags.append('BlackBackground')
|
||||||
if self.opt.forcepng:
|
if self.opt.forcepng:
|
||||||
|
self.image.info["transparency"] = None
|
||||||
self.targetPath += '.png'
|
self.targetPath += '.png'
|
||||||
self.image.save(self.targetPath, 'PNG', optimize=1)
|
self.image.save(self.targetPath, 'PNG', optimize=1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user