Put watermark on images using PHP

posted on June 30, 2006, 11:41 pm
Comments
Mr. Watermark posted on May 26, 2008, 4:15 am
I just implemented the version of this that uses transparency. It works like a charm! Thank you so much!

Paul posted on April 12, 2008, 9:45 pm
Great script and easy to follow. However, I've got a problem.

I've got a php page which creates a watermarked image. The destination filename is blank so it displays on screen. When I use Firefox, the watermarked image is a jpg (about 400KB) but when I use IE it is a bmp (about 2.5MB).

The original images are all jpg. Any ideas what I've done wrong?
-------------------
Veselin: can you post your code or send it to our email address if it is too long

jit posted on February 7, 2008, 7:46 am
Ash posted on 2008-02-06 14:49:40

thank you Ash for semi-transparent ;)

Ash posted on February 6, 2008, 2:49 pm
Hey, sorry for the double post, but i worked it out.
replace $black = imagecolorallocate($image_p, 0, 0, 0);
with $black = imagecolorallocatealpha($image_p, 255, 255, 255, 50);

hope it helps somebody else

Ash posted on February 6, 2008, 2:15 pm
Hi, great tutorial! I have been looking at the script and I was wondering if it would be possible to make the watermark text semi-transparent?

Thank you for any help.

Amit posted on October 29, 2007, 3:20 pm
This is a cool dude.....

pawan posted on July 26, 2007, 12:41 pm
The above mentioned function is only to apply watermark text on image..........
But there is no function to apply watermark image on image...
Please provide me that script

paul posted on July 18, 2007, 7:18 pm
I got the function running but returns a full screen of garbage text..

is something not installed on my server?

Paul

salik posted on July 12, 2007, 10:24 pm
this is not working on gif file formate please do for gif file formate
----------------------
Veselin: yes this is only for JPG files

soumya Prakash dey posted on April 10, 2007, 2:13 pm
how to make watermark in php ?

Pages:   1   2   3   4   
   
If you have any additions, suggestions or modifications for this example please contact us or use the form below.
   
Your name:
Your email: (email address will not be posted on the web site)
Comment:
Verification