This commit is contained in:
Kovid Goyal 2017-06-07 18:13:16 +05:30
parent d047e22e81
commit 2307aeb815
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -326,7 +326,7 @@ def resize_to_fit(img, width, height):
img = image_from_data(img) img = image_from_data(img)
resize_needed, nw, nh = fit_image(img.width(), img.height(), width, height) resize_needed, nw, nh = fit_image(img.width(), img.height(), width, height)
if resize_needed: if resize_needed:
resize_image(img, nw, nh) img = resize_image(img, nw, nh)
return resize_needed, img return resize_needed, img