Removed commented code from previous commit

This commit is contained in:
Andy Heathershaw 2016-09-05 09:58:53 +01:00
parent 7209e21e5a
commit 69f9b0fb41
1 changed files with 0 additions and 20 deletions

View File

@ -91,25 +91,5 @@ class ImageHelper
imagesetinterpolation($imageResource, IMG_SINC);
return imagerotate($imageResource, $angle, 0);
/*switch ($angle)
{
case 90:
case 270:
// Need a new image canvas
$maxDimension = ($photo->width > $photo->height ? $photo->width : $photo->height);
$newImageResource = imagecreatetruecolor($maxDimension, $maxDimension);
imagecopy($newImageResource, $imageResource, 0, 0, 0, 0, $photo->width, $photo->height);
$newImageResource = imagerotate($newImageResource, $angle, 0);
$imageResource = $newImageResource;
break;
case 180:
// We can just rotate this in-place
$imageResource = imagerotate($imageResource, $angle, 0);
break;
}
return $imageResource;*/
}
}