I would like to add a title to a png image in Arial. How can I do this.
I know I have to load the image with:
imagettftext($im, 10, 0, 10, 20, $black, $font, $text);
But with the above code the the text is in the image, I want it the be above the image. So I need to add some room (with white background) in the top of the image to add the text. How can I do this?