Image Upload Rotating & EXIF param

[details=“System Information”]

  • Strapi Version: 3.3.4
  • Operating System:
  • Database: mongo
  • Node Version: 12.16.1
  • NPM Version:
  • Yarn Version: 1.19.1

Hi There,

When I upload a photo with the back office Strapi, sometimes the image rotate after upload

Original image :

Image after upload :
Capture d’écran 2021-03-19 à 09.31.31

I read things about this subject in the strapi github :

It is because of the EXIF in the photo not managed when uploading.
I can use this option on the media lib in the Strapi BO to use EXIF param to manage the rotation of the image :

Why the option (auto orientation) is disabled by default ?
If I activate the option, can there be side effects ?

Thanks you in advance

Hello!
This option is disabled by default because this feature have been added when Media Library already existed. So it could break usual functionality. In theory this option shouldn’t have side effects. But some software can produce images with wrong rotation tag. As I tested original pictures produced by modern iOS or Android devices, I had no problems.

I have also faced this problem in the past. At that time, I remember that I use to flipped images to upload on strapi.
I flip those images on google docs.
So you can also use that same method until the problem is not solved. The below link has tutorial to rotate an image.