I'm dynamically generating a PNG image using PHP 7.3/GD based on a text provided by the user.
Everything works as expected, but I'd like to apply some kind of filter/effect to obtain a Gold-plated style, such as below:
Any idea how to achieve this? I've found solutions to apply blur/glow/shadow or to solve this via HTML5/CSS3 but I must use GD/PHP for this project.
Here's my current code:
<?php
putenv('GDFONTPATH='.realpath('.'));
header('Content-Type: image/png');
$im = imagecreatetruecolor(300, 200);
$bg = imagecolorallocate($im, 255, 255, 255);
imagefill($im, 0, 0, $bg);
$gold = imagecolorallocate($im, 255, 215, 0);
imagettftext($im, 28, 0, 76, 110, $gold, 'HirukoBlackAlternate.ttf', 'Stack');
imagepng($im);
imagedestroy($im);