zubrag.com
Free php and cpanel scripts to automate your daily routine

Free PHP Scripts :: Watermark Image with Text

Watermark images with custom text. TTF fonts supported. A simple approach to put a copyright notice on the image, thus protect it from stealing.

Package contains example for watermarking all the jpg images in a folder. Can be easily changed to process gif and png images.

How to use:
Unpack files, and save them on the server where you have images for watermarking.
Update watermark_text_example.php to match your requirements: watermark text, color, font, font size, angle, shadow, images folder, and watermarked images folder.
Open the file in browser, and it will generate watermarked images according to your settings.

Need to watermark image using another image? (ex: company logo, etc.) Check Image Watermark script

Download Watermark Image with Text


Comments

October 20, 2008
Al clear as mud. Do you hear the sound of your own voice?
POed October 27, 2008
Why go to the effort if you are not going to say anything even semi intelligent?
aysuH [anti-spam] gnauk.asd October 30, 2008
Kopl good
November 3, 2008
Doesn't Work, please fix and reupload

yy
dhamidi [anti-spam] gmail.com December 25, 2008
Hi all
this script and all others work perfect! I test it and I made a portal with many options. see it your sels...

Thank you for your GREAT work
April 22, 2009
it's not working at all after I download
dhamidi [anti-spam] gmail.com July 6, 2009
Really doesn't work, don't download till 2010
tony August 29, 2009
Here its working good but tell me how to apply angel transform in this....

Thanks
JKLZ December 5, 2009
what is wrong with you people?
this person has been nice enough to spend their time to wright a script and allow you to download it to use it and because you are too dumb to know how to use it you put comments that say that it doesn't work. clearly the comment that you should be posting is that YOU ARE TOO F&%$ING STUPID TO GET THE SCRIPT TO WORK!

maybe instead of trying to use these scripts in a programing language that you just don't understand either PAY someone else to build the project that you clearly arn't qualified to build or take some classes so that you can actually learn how to use this programing language so you will be able to learn how to correctly use the code that this person has been nice enough to share with you!
Duder December 31, 2009
You tell em' JKLZ!
But, while we are being honest... maybe check your grammar and spelling.
Curious Onlooker January 8, 2010
ROFL Duder
Sunny August 7, 2010
Hi Guys,

You should also have a demo link which should display the working of the script to avoid such comments.

Thanks and keep up the good work.
September 19, 2010
can u please show/send me the working link/example please
Binay November 5, 2010
It's not working. Pls do something other code so that we get help.
Mehul Ved January 1, 2011
It works if you have php-gd installed.

Please enter (8a2329c2) into the box April 27, 2011
OOOOIT OOOOIT
susantab9 [anti-spam] gmail.com July 18, 2011
hi,
I m downloading Download Watermark Image with Text source code but it is not working what is the process to it what is required in that two source code please help me .....please.......


KSR December 28, 2011
THIS SCRIPT CAN HANDLE ALL IMAGE FILES IN A SAME FORMAT IN THE ENTIRE FOLDER. IT IS EXACTLY WHAT I NEED, BUT I AM ALWAYS GETTING THE FOLLOWING ERRORS. CAN ANYONE HELP?

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/public_html/sairs0/public_html/s-airship/fun/02.jpg' for writing: No such file or directory in /home/sairs0/public_html/s-airship/watermark_text.class.php on line 155

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/public_html/sairs0/public_html/s-airship/fun/04.jpg' for writing: No such file or directory in /home/sairs0/public_html/s-airship/watermark_text.class.php on line 155
algous [anti-spam] qq.com April 7, 2012
Sir,

Very thanks for your work first. It helped me much. Is there any way to add transparent text watermark on image?

regards
armin
June 12, 2012
the example watermark_text_example.php works fine. But when I convert it to a function which takes the image file and destination folder. The php code runs ok but the watermark text is not added. Why can't i convert it into a function ?
January 14, 2015
Warning: imagettfbbox(): Invalid font filename in C:\wamp\www\watermark-image-text\watermark_text.class.php on line 101
Warning: imagettftext(): Invalid font filename in C:\wamp\www\watermark-image-text\watermark_text.class.php on line 120

I am getting this error please help me.
thanx in advance.
January 14, 2015
Please help me about the above errorss...
thanx..
February 26, 2015
You have to download arial.ttf here:

http://www5.miele.nl/apps/vg/nl/miele/mielea02.nsf/0e87ea0c369c2704c12568ac005c1831/07583f73269e053ac1257274003344e0?OpenDocument

and copy in the watermark folder.
May 14, 2015
Can we merge between image watermark and text, as I used the image water mark to overlay the logo in the center of the image, and I need to put the domain and copyrights on the right bottom too, how to merge the two script to do both actions in one shot...
navenchary [anti-spam] gmail.com August 29, 2016
How can I add opacity to the text. Also the new images created are locked.
ahf [anti-spam] strictly-html.de March 7, 2018
Thanks, but a useful watermark should be transparent.
Malte May 14, 2018
Please anyone have arial.ttf help me and send download link of file through my E-mail ==> Adamumalte@yandex.com