made resizing more accurate
This commit is contained in:
parent
2f9e71560f
commit
16c21d46bf
2
ascii.py
2
ascii.py
|
@ -37,7 +37,7 @@ def scale_image(image, maxDim=100):
|
|||
new_height = maxDim
|
||||
aspect_ratio = original_width/float(original_height)
|
||||
new_width = int(aspect_ratio * new_height)
|
||||
image = image.resize((new_width, new_height))
|
||||
image = image.resize((new_width, new_height), Image.ANTIALIAS)
|
||||
return image
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user