I have a PHP script that rotates an image and currently i have given the rotation angle as 90 degrees, but the problem is when i rotate the image by 30 degrees, or 45 degrees, the image gets distorted and gets smaller and smaller.
Here is the function
function rotateLeft(){
$rotate = imagerotate($this->image, $this->leftDegree, 0);
imagejpeg($rotate,$this->imagePath, 100);
}
Does Anybody know why this is happening, i don't want the image to be distorted.
Thanks,
Eliza