Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
* * * * * 1 votes

Watermark Your Image With Simple Php Script


42 replies to this topic

#41 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 08 January 2010 - 02:50 PM

can this apply on blogger posts?Watermark Your Image With Simple Php Script

hi! I would like to use this for my image posts in blogger. What script should I use and where should I place it? thanks!

-question by ambi dextrous

#42 Guest_Allen_*

  • Guests

Posted 28 February 2011 - 11:44 PM

I implemented this script within 10 minutes and had it working on our client's image gallery. 500+ professional photographs are now all watermarked within the website.

Thanks!

Quick-tip: I am using a lightbox framework for images, so I had to edit the href= property of the a tag. Before I would have something like this:
<a href="photos/full/<?php echo $gallery; ?>/<?php echo $filename; ?>"><img src="photos/thumb/...

Now I am calling them like so:
<a href="watermark.php?path=<?php echo $gallery; ?>/<?php echo $filename; ?>"><img src="photos/thumb/...

And within watermark.php, I edited the first line to read:
$imagesource =  'photogallery/full/' . $_GET['path'];

This eliminates the entire full-size URL from displaying in the status bar when hovering a link, which helps reduce the lieklihood of hotlinking or direct image viewing, ie. typing in the full image path into the browser to bypass the watermarking.

Thanks again!

Edited by moderator, 11 April 2012 - 06:30 AM.


#43 Guest_cheesedorayaki_*

  • Guests

Posted 03 February 2012 - 03:28 AM

helloo..

may I ask you?
I need help to solve my problem..
when I add a watermark (PNG) to PNG image, why the background changed black.
actually, the PNG image has transparent background..

there's someone can help me?

Thx..




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users