mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
d047e22e81
commit
2307aeb815
@ -326,7 +326,7 @@ def resize_to_fit(img, width, height):
|
||||
img = image_from_data(img)
|
||||
resize_needed, nw, nh = fit_image(img.width(), img.height(), width, height)
|
||||
if resize_needed:
|
||||
resize_image(img, nw, nh)
|
||||
img = resize_image(img, nw, nh)
|
||||
return resize_needed, img
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user