Intelligent Watermark (php + gd)

This entry is part 5 of 5 in the series Online Photoshop

Online Photoshop in PHP Part (5) >>

(image after watermarked with gmail logo)

Those who haven’t seen  the online photoshop tool created by me, just click here: http://www.sajithmr.com/photoshop

Today we will implement the watermarking on images using php gd library. Intelligent watermarking means, apply a logo or a watermark image on another image by measuring the color depth of the applied image. For this water marking, use png images as logo or watermark  for better results.

Live example for watermark implementation: http://sajithmr.com/photoshop-tuts/watermark/addwatermark.php

You can see different watermark location by changing the x1,y1 and x2,y2 parameters of the following url:

http://sajithmr.com/photoshop-tuts/watermark/showresult.php?x1=405&y1=285&x2=520&y2=392&width=115&height=107

See the watermark php source code here: http://sajithmr.com/photoshop-tuts/watermark/watermark.class.txt

Download the full-source code of watermarking implementation using php+gd from here: http://sajithmr.com/photoshop-tuts/watermark.rar

3 Comments , , , , , , , ,

3 Responses to “Intelligent Watermark (php + gd)”

  1. Marco Pracucci August 31, 2008 at 6:46 pm #

    There’s another important problema to solve, related to watermarks, that is place it in a position where it does not hide any important thing. I have proposed a simple algorithm (with its implementation in PHP + IMagick). Feedback is welcome

  2. ubuh June 17, 2009 at 10:15 am #

    thanks for link…

  3. xacore`u June 3, 2011 at 9:23 am #

    You have broken link… please give other link

Leave a Reply

More in Downloads, php, php source code (59 of 118 articles)


After the success of my previous wordpress plugins , Announcement, Show My Page Rank, Sexy Rating, Add to this ...