I need to resize an image using the Django app sorl-thumbnail (https://github.com/mariocesar/sorl-thumbnail).
I tried the documentation and the only way to resize an image is by using the template tag but what I want is to change it in a view.
This is because I need to upload a raw image and append the resized image into a modal using jQuery. Is there anyway to achieve this using sorl-thumbnail? I am seeing some solutions in PIL but they seem too complicated.
You can use sorl-thumbnail in your view to resize an image like:
100x100
for your desired Width x Heightim.url