So I have png image and I rotate it but i get a black background.. or if i do the color code ofr white i get white.. I tried doing this..
$trans = imagecol
$destimg = imagecreatefromjpeg("image.png"); $transColor = imagecolorallocatealpha($destimg, 255, 255, 255, 127); $rotatedImage = imagerotate($destimg, 200, $transColor); imagesavealpha($rotatedImage, true); imagepng($rotatedImage,"rotated.png");