With the GD library of PHP you can rotate an image with the imagerotate
function. The downside of this function is that it doesn't clip the edges and that is exactly what I need.
Here's an example image that shows my problem:
As you can see, in Photoshop the edges are clipped. In PHP the size of the image just increased because of the rotation. I really want to get the same result as I have in Photoshop. Any idea how to do this in PHP?
(I only have access to the GD library.)