You are here: Re: add text on top of PNG « All PHP « IT news, forums, messages
Re: add text on top of PNG

Posted by Anonymous on 12/13/06 01:19

toffee wrote:
>
> Hi all,
>
> not sure if this is possible in PHP - every couple of weeks; i get a few png
> files; which i th open in an image editor; add a text box with comments in
> the top right corner; save the pngs and save them for later use by a php
> script.
> My question is there an automatic way so that a php script can do all this
> image editing for me ?
>
> i appreciate all replies.

Sure.

Check the image functions in the PHP manual, especially the functions
imagecreatefrompng to load a png image, imagestring (or imagepstext or
imagettftext if you want Postscript Type 1 or Truetype fonts) to write
your text into it and imagepng to output it again in png format.

Bye!

 

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

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