Why when i rotate the image black borders appear? PHP GD
问题 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? <?php $im = imagecreatetruecolor(300, 400); $white = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 000, 000, 000); $black1 = imagecolorallocate($im, 001, 001, 001); $grey = imagecolorallocate($im, 230, 230, 230); $font_file = './arial.ttf'; $rotate=45; imagefilledrectangle($im, 0, 0, 300, 400, $black);