Why when i rotate the image black borders appear? PHP GD
- by EAGhost
This code generates two images using GD and rotates one of them. When I rotate the image black borders begin to appear. Anyone have an idea of how to resolve this?
imagefilledrectangle($im, 0, 0, 300, 400, $black);
imagefilledrectangle($im, 1, 1, 298, 398, $grey);
imagefilledrectangle($im, 49, 69, 251, 271, $black);
imagefilledrectangle($im, 50,…