Trying to counter the issues with uploaded images from IOS devices where the exif orientation is kept causing them to be rotated sometimes.
I found many snippets on using imagerotate to counter this problem but trying to implement them.
For the saving of the image I am using:
$moveUploadedFile = move_uploaded_file($fileToUpload["tmp_name"], $this->uploadDir . "/" . $newFileName);
(taken from bulletproof image upload class)
Im fine with making the switch statement to check the exif data, but cant make the move_uploaded_file work.
I have tried (for testing) e.g:
$image = $fileToUpload["tmp_name"];
$image = imagerotate($image, 90, 0);
$moveUploadedFile = move_uploaded_file($image, $this->uploadDir . "/" . $newFileName);
This is giving me the error of the move_uploaded_file requesting a string BUT receiving a resource instead.
Any help?