I have the following scenario:
https://medium.com/@giovanni_cortes/rotate-image-in-django-when-saved-in-a-model-8fd98aac8f2a
This blog post explains it clearly. Just make sure you try keeping the @receiver.. code in forms.py or models.py as I got cannot import model/view errors .
keep the rotate_image method in models.py &
@receiver.. code also in models.py.
I also got errors like No such directory. Just make sure full_path is set correctly to media folder.
I used this line
fullpath = os.path.join(os.path.dirname(BASE_DIR)) + instance.fimage.url