Posted by Rik on 02/07/07 01:23
vis <info@elvisciotti.it> wrote:
> i want the text (over a image with gd2 library) with XX% of width and
> 100%
> of height of original ttf (es:verdana.ttf).
> that is possibile ??
1. Check the dimensions with imagettftbox()
2. Create an image of that proportions.
3. Make it transparent using imagecolorallocatealpha().
4. Create the text using imagettftext();
6. Copy the created image over the image you want the text in using
imagecopyresampled(), with which you can also change the dimensions/size
of the (part of the) image pasted in.
> which is an alternative php extension for resolve this problem ?
Maybe imagemagick can do the same, haven't checked on it though.
--
Rik Wasmus
Navigation:
[Reply to this message]
|