Auto Image Rotate for iPhone and iPad [Deleted]

I just realized something, I check and the modified upload.php and it was back to its original state. What may have happened is that I got a server error a week or so ago and @Mike had me re-upload a file and I can't remember the name of it or find the thread. It did fix the server error. Will this hack cause a server error on the ACP back end?

This modification will not cause server errors. But you do need to confirm ImageMagick is working.

In my previous post I asked which image processor you have checked.
 
The addon would look like this:

listener: load_class
hint: XenForo_Upload
Listener: AutoRotate_Listener::loadClass
PHP:
class AutoRotate_Listener

public function loadClass
{
extend[] = 'AutoRotate_Upload';
}
PHP:
class AutoRotate_Upload extends XFCP_AutoRotate_Upload
{
  protected function _checkImageState()
{
  if ($this->_imageInfo !== null)
     {
       return;
     }

     $this->_imageInfo = false; // default to not an image

exec("/usr/bin/mogrify -auto-orient $this->_tempFile");
return parent::_checkImageState();
}
}
There might be some errors, but maybe this helps you.
 
Back
Top Bottom