Hi, I'd like to be able to generate an image with overlaying text (that is inputted by the user) such as how it is done on www.depressiondog.info. Can someone show/link me to some code that will do that. Thanks.
+1
A:
Like the comments say, it depends on your server side language. However, the website you have provided uses PHP on the server side.
This probably involves the GD library, in particular the imagettftext function.
A nice tutorial can be found here.
Richard Nguyen
2009-11-14 04:31:47
Same answer exactly, you beat me by a couple of seconds...
Ryan Lynch
2009-11-14 04:35:40
+3
A:
The Depression Dog site sends a request to a PHP page on an Apache server. They probably use some code like you'll find in this tutorial explaining how watermark PNG and JPEG Images with PHP and GD2.
- Here's the request to their service :
http://www.vumf.com/ddog.jpg?l1=PHP&l2=Makes+Me+Cry&l1f=26&l2f=26&f=2
- And Here is the Image
Ryan Lynch
2009-11-14 04:32:25
I was gonna go with "PHP Kills Puppies", but I didn't want to offend either dog owners or PHP developers/Puppy Killers. ;-)
Ryan Lynch
2009-11-14 13:59:36