Z
Z
zkweb2015-12-21 11:37:45
Django
zkweb, 2015-12-21 11:37:45

How to keep the given proportions of the image?

image.thumbnail((200, 200), Image.ANTIALIAS)
Why is the resized image saved at 200x150 ?
What needs to be added?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-12-21
@zkweb

stackoverflow.com/questions/6177532/why-does-pil-t...
Doesn't keep image aspect ratio www.pythonware.com/library/pil/handbook/image.htm#...
Keeps image aspect ratio www.pythonware.com/ library/pil/handbook/image.htm#... If
you want to do it right in django way use https://pypi.python.org/pypi/easy-thumbnails

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question