Maybe you should add a solution to the vertical images that are being uploaded. They always turn 90 degrees to the left. I'm using this, and so far it solves it, but it's a very annoying problem.
<?php
$hey = $images->filename;
$exif = @exif_read_data($hey);
if (!empty($exif['Orientation'])) {
$image = imagecreatefromjpeg($hey);
switch ($exif['Orientation']) {
case 3:
$image = imagerotate($image, 180, 0);
break;
case 6:
$image = imagerotate($image, -90, 0);
break;
case 8:
$image = imagerotate($image, 90, 0);
break;
}
imagejpeg($image, $hey, 90);
}
?>