I am searching if we can make PNG Image with php.
$image = imagecreatetruecolor(100,100);
$black = imagecolorallocate($image,0,0,0);
imagefill($image,0,0,$black);
This would create 100 X 100 black image.
But, I want to create 100 X 100 image with no background, i.e 100 X 100 transparent Image.
Thanks in advance
You can choose one color to become the transparent one like so:
As taken from the manual example: http://php.net/manual/en/function.imagecolortransparent.php