On my local machine i have the right orientation both on the panel and when rendered on the html page. On the remote server it has the wrong orientation on the panel (and it’s distorted), and it’s rendered with the wrong orientation on the html page (without the distortion).
I checked the php required and recommended extensions and my remote server has everything but ImageMagic (gd is installed).
The image is the only one from a set of images, the others behave as expected. I’m not sure where to look to solve this.
Have you checked the EXIF data in the image? From memory some phones incorrectly set the orintation flag, i think if the phone is physically rotated. Does it happen locally if you switch to GD?
Theres a long thred on github related to this you might find things to investigate
The image does have the property image orientation: 90° rotated CCW while all the other photos have image orientation: Unchanged.
I tried both imagemagick and gd drivers on my local machine but couldn’t reproduce that rotation. I’ll dig more into the github discussions to find a lead to solve this.