mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
...
This commit is contained in:
parent
d047e22e81
commit
2307aeb815
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue