You are here: Re: gd2 « All PHP « IT news, forums, messages
Re: gd2

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация