You're looking for ImageMagick or GD. I suggest ImageMagick. Check you have it installed; here is an example peice of code, set $image to a blank image, or something you don't mind messing up completely....
PHP Code:
<?php
@exec("mogrify -fill #00CC00 -pointsize 20 -font Arial.ttf -draw \"text 30,30 'Hello'\" $image");
?>
This will draw the text 'Hello' onto $image in the Arial font at a height of 20 pt (or does it do it in px.... I forget) In a horrible neon green colour (#00CC00).
Practice, practice, practice, practice, practice makes reasonable.
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources, Please login or register to view this content. Registration is FREE
Last edited by webwoRRks; 08-09-2004 at 06:45 AM..
Reason: hit enter key by mistake
|