Hi all,
I have an image that I try to modify and add text using GD libary.
It works well but because the users will insert the text I don't know what the text will be.
My question is how can I align the text so it will be in the center?
my code is this:
imagettftext($my_img, 80, 0, 181, 100, $text_colour, $font, $text);
but this will insert it on specific location and not centered
any idea?
thanks!