Doing a church sign generator? I used to love those.
I can't test the code since it uses "imagick", some php extension, but unless there's a reason you have to use that, look into PHP's "imagecreate" function.
And unless you have to use PHP, you can do this kind of stuff with just Javascript and canvas.
Edit: I bothered to RTFM on the "Imagick" github when I was about to close the tab and it's in the Debian repo, so I tried it. Right clicking and saving in Firefox provides the extension, though it's .jpeg, not .jpg, ie "page.php.jpeg".
__________________
__________________
|