On Mon, 2009-05-11 at 00:04 -0700, Michael A. Peters wrote:
> I need to know the best way to dynamically watermark images via gd.
> This is an example of what I currently have:
> http://www.shastaherps.org/images/66-3.jpg
> That's using Lucida Mono. A really nice monospace font (very similar to 
> Apple's Monaco), the font I like to use in text editors, but perhaps not 
> the best font for watermarking.
> This is an example of a much better watermark:
> http://www.naherp.com/vouchers/24116-24060.jpg
> I'm not sure what font that is (anyone know ??) but that site looks like 
> it somehow adds a black border around the font, making the watermark 
> much better.
> With mine, on certain backgrounds the watermark has to moved from one 
> corner to another or the color has to be changed in order for it to 
> properly show.
> That site is also coded in php so I'm guessing that the watermark is 
> added using a php technology.
> Can someone enlighten me on how that is done?
> Also, while not php related, could someone enlighten me of a really good 
> font to use for watermarking images?

I did something similar to this a long time ago. The trick was to print
the text 5 times. 4 times with black. 1 time with white. The 4 black
prints are done with a 1 pixel offset in each direction of the compass.
This will produce the nice black outline that has the shape of the font
itself and ensures the text can be seen on any background.

Application and Templating Framework for PHP

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to