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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user