I am currently using imagerotate() available in php GD to let user rotate images. Whenever user rotates like 45 degree, 75 degree etc, background color is added to make image have rectangle shape. The more the number of time user rotates,the bigger the image size and the wider the background color area.
$image = imagerotate($image,45, 0xFFFFFF);
Is there anyway in php gd to rotate image with free degree(eg: 45 degrees,75 degrees, 306 degrees) without adding any background image or without increasing file image?
Edit: I get this error: "Fatal error: Allowed memory size of 33554432 bytes exhausted" when image size is getting bigger and white area is getting wider. That's why I want to know any other way to rotate image.
Thank you.