0
<?php
$image = imagecreatetruecolor(100, 100);
//Fundo Transparente
imagealphablending($image, false);
$transparency = imagecolorallocatealpha($image, 0, 0, 0, 127);
imagefill($image, 0, 0, $transparency);
imagesavealpha($image, true);
//Aproveitando
$black = imagecolorallocate($image, 255, 174, 0);
imagefilledrectangle($image, 25, 25, 75, 75, $black);
header('Content-Type: image/png');
imagepng($image);
?>
I want to add a form with only one input field, when clicking the Submit button generate an image with transparent background with the content that wrote in the input field.
Can someone help me do?