Can you watermark an image on the fly - without replacing it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Can you watermark an image on the fly - without replacing it

Post by simonmlewis »

I want to add a watermark to thumbnails on-the-fly as they load up. Not create them as temp, and replace them permanently. Just to "show" with a watermark.

Is there a special means of doing this?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Can you watermark an image on the fly - without replacin

Post by requinix »

"Special"? Not really. It depends exactly how you're watermarking now, but basically the only difference is that you output the image instead of saving it to a file.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Can you watermark an image on the fly - without replacin

Post by simonmlewis »

Yeah.
I've gone for the "background image in a DIV" with foreground image as a transparent worded-image. Seems to work.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply