Stopping auto-rotation of images in Django-imagekit Thumbnail

django, django-imagekit, python

Solution

Glad you figured this out, but ImageKit may be able to help you out some still. Check out the Transpose processor (`imagekit.processors.Transpose`). By default, it will use the metadata in the image, and rotate by that amount! Just be sure to list this processor first as subsequent processors will strip the metadata from the image.

Problem

I've got a thumbnail filter that always ends up rotating the image 90 degrees to the left when the image is taller than it is wide (I've checked, and the original image is straight, while the cached image is rotated). The relevant code looks like this: ``` profile_image = models.ImageField(upload_to='profile_images', default='profile_images/icon.png') profile_icon = ImageSpecField(source='profile_image', processors=[processors.Thumbnail(width=72, height=72, crop=True)], format='JPEG', options={'quality': 60}) ``` How do I stop the auto-rotation?

Original source