|
|
|
@ -569,10 +569,10 @@ final class Photo {
|
|
|
|
|
case 5:
|
|
|
|
|
// rotate 90 and mirror
|
|
|
|
|
$sourceImg = imagerotate($sourceImg, -90, 0);
|
|
|
|
|
$newWidth = $info['height'];
|
|
|
|
|
$newHeight = $info['width'];
|
|
|
|
|
$swapSize = true;
|
|
|
|
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
|
|
|
|
$newWidth = $info['height'];
|
|
|
|
|
$newHeight = $info['width'];
|
|
|
|
|
$swapSize = true;
|
|
|
|
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 6:
|
|
|
|
@ -585,10 +585,10 @@ final class Photo {
|
|
|
|
|
case 7:
|
|
|
|
|
// rotate -90 and mirror
|
|
|
|
|
$sourceImg = imagerotate($sourceImg, 90, 0);
|
|
|
|
|
$newWidth = $info['height'];
|
|
|
|
|
$newHeight = $info['width'];
|
|
|
|
|
$swapSize = true;
|
|
|
|
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
|
|
|
|
$newWidth = $info['height'];
|
|
|
|
|
$newHeight = $info['width'];
|
|
|
|
|
$swapSize = true;
|
|
|
|
|
imageflip($sourceImg, IMG_FLIP_HORIZONTAL);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 8:
|
|
|
|
|