Removed commented code from previous commit
This commit is contained in:
parent
7209e21e5a
commit
69f9b0fb41
@ -91,25 +91,5 @@ class ImageHelper
|
|||||||
imagesetinterpolation($imageResource, IMG_SINC);
|
imagesetinterpolation($imageResource, IMG_SINC);
|
||||||
|
|
||||||
return imagerotate($imageResource, $angle, 0);
|
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;*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user