Answer the question
In order to leave comments, you need to log in
Why does easy_thumbnails rotate the image 90 degrees?
I am using django-cms 3.0.12, django-filer 0.9.9, easy-thumbnails 2.2, Pillow 2.8.0.
In template:
{% thumbnail image_file 200x200 as thumb %}
<img style="width: 100%;" src={{ thumb.url }} />
pip install pixif
import piexif
from filer.models import Image
class ItemImage(models.Model):
apartment = models.ForeignKey(Apartment)
image_file = FilerImageField()
@receiver(post_save, sender=Image)
def remove_exif(sender, instance, created, **kwargs):
piexif.remove(instance.path)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question