Skip to content
WJunction - Webmaster Forum

Image Watermarking scrit

Status
Not open for further replies.
any script for image watermarking, with text..

eg:
like picfont.com

it's doesn't show any page load(i think, ajax) also with one click image is uploaded to imageshack, so any script like that.

or basic watermarking script with remote upload
 

6 comments

I find this in my collection, maybe u can use this a bit ;)

PHP:
<?php
// Load the stamp and the photo to apply the watermark to
$stamp = imagecreatefrompng('out/classified-stamp.png');
$im = imagecreatefromjpeg('out/image.jpg');

// Set the margins for the stamp and get the height/width of the stamp image
$marge_right = 0;
$marge_bottom = 0;
$sx = imagesx($stamp);
$sy = imagesy($stamp);

// Copy the stamp image onto our photo using the margin offsets and the photo 
// width to calculate positioning of the stamp. 
imagecopy($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));
imagejpeg($im, "out/stamped.png"); 
imagedestroy($im);        
        
echo "stamped.png";
?>
 
Status
Not open for further replies.

About the author

T
Active Member · Joined
Helping Others
1,559
Messages
309
Reactions
83
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom