<?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 I click on the submit button, generate a transparent background image with the content you typed in the input field.
Can anyone help me do that?