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

Free PHP Scripts :: Watermark Image

The script will watermark image using another image. A simple approach to put your company logo or 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_image_example.php to match your requirements: set images folder and watermarked images folder.
Open the file in browser, and it will generate watermarked images according to your settings.

Need to put custom text on the image? (ex: webstite URL, company name, etc.) Check Watermark Image with Text script.

Download Watermark Image


Comments

happyhyderabadraj [anti-spam] gmail.com May 14, 2008
Respected sir/Madam,
thank u very musch to providing the source code thanks millions times i imprressed plese display your image if possible thank u
your's
Thanks and regards
Rajkumar Tunga
June 1, 2008
thanks for sharing!
AMit6021 November 12, 2008
Really works , its really helpfull and easy to use....

Thanks buddy....

dotcom2000 [anti-spam] gmail.com March 16, 2009
comments
rong_2220 [anti-spam] hotmail.com March 19, 2009
Thank you for Script.
oualido April 10, 2009
Very interesting,

thank you very much
hitesh.129 [anti-spam] gmail.com May 6, 2009
thnax for the script it's work really nicly just i need to make image and all done..thanx a lot again.
June 30, 2009
thanks boss...Ashim....
oualido July 6, 2009
Doesn't work
dave July 21, 2009
You can add digital watermark by the watermark software picmarkrpro.com .
If yoh have an flickr account you can replace your Flickr photos with their watermarked copies.
ponle salu July 27, 2009
worked perfectly
gadt October 25, 2009
adt
admin [anti-spam] mycanadianauto.ca January 17, 2010
How do I install this onto the folder with images I want to be branded. Thank you in advance, been looking for this script everywhere.
February 8, 2010
best example in network? thanks
farrukh April 4, 2010
how to use it ? can any one tell me please i really need it...
teng09us [anti-spam] yahoo.com June 20, 2010
hi thank you for this watermark script it's easy to use but i have one problem how can i center this watermark on the image
John July 8, 2010
Thank you, it is working
Hossoft August 19, 2010
thak you.

my website: hossein2000.gigfa.com
moni [anti-spam] bjayslist.com November 9, 2010
I am in need of a watermark for my sites ad pictures. can it be done?? bjayslist.com
anil.erogul [anti-spam] hotmail.com January 3, 2011
can anyone help? it doesn't work please help me..
john [anti-spam] jhonson.com June 3, 2011
Thanks....

Good code....
SparK July 12, 2011
I didn't use your class, but I took a look to find the core copyimagemerge command and then make my image class with apply watermark, resize, crop, gets and sets for mime types, sizes etc... of course the file operations are inherited from a file class and only image especific stuff is in the image class. Also I use Java coding naming convetions for attributes, methods, classes and interfaces (and aspects (still beta)).
victor007.shbu [anti-spam] yahoo.com September 5, 2011
Hi
it doesn't work please help me..
December 15, 2011
Ok its work fine no problem i tested it on Opencart at http://localhost. Here is how u have to write in localhost to get it work for opencart.
Here is where my image are!
$images_folder = 'image/data/';
And here is where i want the new image with watermark files end in folder.
$destination_folder = 'image/cache/data/';
And here is where i have my watermark.png image
$watermark_path = 'image/data/watermark.png';
Make sure to erase all the image in cache folder before you load the
http:localhost/your_folder/watermark_image_example.php now the new image will end there with you new logo easy. Dont forget to thank me. Im from sweden there everything is free
djkashif [anti-spam] live.com December 26, 2011
Yes, Its awesome!
Thankx a lot.


i am trying to find a watermarking on doc/word file. can you help me out....
KSR December 29, 2011
Hello everyone,

This is wonderful script, probably the best in the world for image watermark! Please take a look the example at my website:

"http://yepko.net/listing_assets/index/listing/listingId:20/show:270"

Chao!
KSR December 29, 2011

Or,

http://yepko.net/listing_assets/index/listing/listingId:20/show:268

Good luck!

Chao!
KSR - yepko.net December 29, 2011
Hahahahahahahahaha……. WHOEVER ASKING QUESTIONS IN THIS COMMENT POST WILL NEVER BE ANSWERED BECAUSE THAT IS WHAT THIS COMMENT POST IS FOR! YOU SHOULD GO TO FORUM AND JOIN MY TOPIC TO ASK QUESTIONS! AS I HAVE 1 DAY EXPERIENCE, I CAN ANSWER FOR ALL THAT.
KSR - yepko.net December 29, 2011
MY FORUM TOPIC IS AT "http://www.zubrag.com/forum/index.php/topic,10039.0.html".

PLEASE GO THERE AND POST YOUR QUESTIONS IF YOU HAVE ANY. I WILL THAN ANSWER YOUR QUESTIONS AS MANY AS I AM ABLE, AND YOU CAN ALSO HELP ME WHEN I HAVE QUESTION..

SEE YOU SOON~!
syam2006 [anti-spam] gmail.comy June 26, 2012
Visit this post
functions4php.blogspot.in/2011/04/image-whater-marking.html
satishwep [anti-spam] gmail.com September 19, 2012
it sports php 4.1 who to use higer php version
jaykishanp [anti-spam] smartdatainc,net May 15, 2013
I am getting this error "Cannot render TTF text." while uploading the image.

Please any one can suggest me what is going wrong and provide solution for it.

Thanks
August 1, 2013
Thanks for the script!

if you want to merge 24bit PNGs with alpha transparency correctly you can replace this line

imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_x, $watermark_y, 100);

with this line

imagecopy($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_x, $watermark_y);

in watermark_image.class.php

Thanks again!

Cheers,
Lorenz
asd January 24, 2014
not working
trao4534 [anti-spam] sampmail.com February 14, 2016
Very good tutorial there is also a good tutorial on talkerscode.com to add watermark on image using php
http://talkerscode.com/webtricks/add-watermark-to-an-image-using-php.php
Thirumani Raj May 23, 2016


Kindly see this tutorial for compress and add watermark using php. I think it is easy to understand.

http://www.hackandphp.com/blog/resize-compress-and-watermark-to-the-uploaded-image-using-php

Thanks & Regards Thirumani
saba.web [anti-spam] gmail.com September 6, 2016
And you need add you watermark image in center,
change the $dest_x, $dest_y varible value in imagecopy function in class folder.