• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Uploaded images get rotated

gavpeds

Active member
#1
I wonder if anyone has a clue with this?

I have a few users reporting that when they upload an image it gets rotated either 90 or 180 degrees.

I have recently update to php7 with redis and also installed the good for nothing kraken adon. Not sure if any of these will be causing it but was fine before.
 

Mike

XenForo developer
Staff member
#2
Can you get the original (pre-rotated) version of the image and upload/reproduce it here?

We do rotation based on the EXIF tags in the image. If those are incorrect, that would cause it, but that would really be a bug in the source image itself (as many programs rotate based on EXIF data).
 

Chris D

XenForo developer
Staff member
#3
The update to PHP 7 could be related if PHP has been compiled without the EXIF functions.

What you are describing as the images being rotated, could actually be the fact that they are not being rotated where they used to be.

Check phpinfo (admin.php?tools/phpinfo).

If EXIF functions are available you should see something similar to:

upload_2016-8-28_22-30-9.png