don't add white padding if forced white background checked
This commit is contained in:
1 parent
b1c4cd36f1
commit
c3d2f89471
1 file changed
+1
-1
@@ -372,7 +372,7 @@ class ComicPage:
|
|||||||
else: # if image bigger than device resolution or smaller with upscaling
|
else: # if image bigger than device resolution or smaller with upscaling
|
||||||
if abs(ratio_image - ratio_device) < AUTO_CROP_THRESHOLD:
|
if abs(ratio_image - ratio_device) < AUTO_CROP_THRESHOLD:
|
||||||
self.image = ImageOps.fit(self.image, self.size, method=method)
|
self.image = ImageOps.fit(self.image, self.size, method=method)
|
||||||
elif self.opt.format == 'CBZ' or self.opt.kfx:
|
elif (self.opt.format == 'CBZ' or self.opt.kfx) and not self.opt.white_borders:
|
||||||
self.image = ImageOps.pad(self.image, self.size, method=method, color=self.fill)
|
self.image = ImageOps.pad(self.image, self.size, method=method, color=self.fill)
|
||||||
else:
|
else:
|
||||||
if self.kindle_scribe_azw3:
|
if self.kindle_scribe_azw3:
|
||||||
|
|||||||
Reference in new issue
Block a user