mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
fix multiframe gif images (#1089)
This commit is contained in:
@@ -151,7 +151,8 @@ class ComicPageParser:
|
|||||||
# Detect corruption in source image, let caller catch any exceptions triggered.
|
# Detect corruption in source image, let caller catch any exceptions triggered.
|
||||||
srcImgPath = os.path.join(source[0], source[1])
|
srcImgPath = os.path.join(source[0], source[1])
|
||||||
Image.open(srcImgPath).verify()
|
Image.open(srcImgPath).verify()
|
||||||
self.image = Image.open(srcImgPath)
|
with Image.open(srcImgPath) as im:
|
||||||
|
self.image = im.copy()
|
||||||
|
|
||||||
self.fill = self.fillCheck()
|
self.fill = self.fillCheck()
|
||||||
# backwards compatibility for Pillow >9.1.0
|
# backwards compatibility for Pillow >9.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user