Image Watermarking scrit

Status
Not open for further replies.

toRRfriend

Active Member
1,559
2010
309
50
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.
Back
Top