Posted: 2007-01-07T09:31:53-07:00
I can not think of an easy way to do it. One way would be to make an image containing your text and use that to watermark your image.
One thing I have noticed and that is if you use a transparent background the text does not come out very well.
Anyway if nothing else is suggested you can probably have a play around with this and see if you can improve on it.
One thing I have noticed and that is if you use a transparent background the text does not come out very well.
Anyway if nothing else is suggested you can probably have a play around with this and see if you can improve on it.
Code: Select all
<?php
exec("/usr/local/bin/convert -size 250x60 xc:none -font verdana.ttf -fill black -pointsize 40 -gravity center -draw \" text 0,0 'rubblewebs' \" transparent.gif");
exec("/usr/local/bin/composite -gravity center -dissolve 30% transparent.gif earth.jpg watermark_transparent.jpg");
unlink ( "transparent.gif" );
?>