Hi,

I need to rotate an image 5 degrees in PHP for a site I'm working on. The image rotates fine using the imagerotate() function, the problem is the background where it was before turns to black. Any ideas how to fix this? Thanks...

    When you create the new image the first call to imagecolorallocate() sets the background. Set it to the one that matches the existing one.

      Write a Reply...