1
0
mirror of https://github.com/ciromattia/kcc synced 2026-04-03 07:35:43 +00:00

fix autocrop in certain situations (#1274)

This commit is contained in:
Alex Xu
2026-03-17 16:11:40 -07:00
committed by GitHub
parent a87eb318cf
commit e0471b2dc9

View File

@@ -518,7 +518,7 @@ class ComicPage:
self.image = ImageOps.contain(self.image, self.size, method=method)
def resize_method(self):
if self.image.size[0] < self.size[0] and self.image.size[1] < self.size[1]:
if self.image.size[0] <= self.size[0] and self.image.size[1] <= self.size[1]:
return Image.Resampling.BICUBIC
else:
return Image.Resampling.LANCZOS