AndyB
Well-known member
This hack will fix the problem when images uploaded from an iPhone or iPad end up in the wrong orientation (sideways).
You must have ImageMagick installed.
The code snippet below is for Xenforo v1.2.x.
library/Xenforo/Upload.php
Line #184
You must have ImageMagick installed.
The code snippet below is for Xenforo v1.2.x.
library/Xenforo/Upload.php
Line #184
PHP:
protected function _checkImageState()
{
// start hack
exec("/usr/bin/mogrify -auto-orient $this->_tempFile");
// end hack
Last edited: