Remove extra space accidently added (learned you can put spaces after periods in Python?)
This commit is contained in:
parent
3776730709
commit
7f485c5f78
7 changed files with 9 additions and 9 deletions
|
@ -890,7 +890,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
|
|||
if resize:
|
||||
new_width, new_height = resize
|
||||
scale = min(new_height/cur_height, new_width/cur_width)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL. Image.LANCZOS)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
|
||||
with io.BytesIO() as bio:
|
||||
img.save(bio, format="PNG")
|
||||
del img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue