Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
- Load Cells
- mothers day replica rolex watches today
- Free partition data recovery utilities
- MySQL & Best PHP Web Hosting + save 50%
Bookmark :
Links :
golfing productslow cost magazines
dvd information
Downloads :
Misc :
Webmaster ResourcesOnly PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming
watermark an image example
watermark an image example
Using this on our iwantfreebies site
<?php
header('content-type: image/jpeg'); //content type is a jpeg
$watermark = imagecreatefrompng('watermark.jpg'); //this is the watermark we are using
//gets the dimensions of the watermark image
$width = imagesx($watermark);
$height = imagesy($watermark);
$image = imagecreatetruecolor($width, $height);
//image to be watermarked
$image = imagecreatefromjpeg("sampleimage.jpg");
//get the size of the image
$size = getimagesize("sampleimage.jpg");
$dest_x = $size[0] - $width - 5;
$dest_y = $size[1] - $height - 5;
//copy watermark on to image
imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $width, $height, 100);
imagejpeg($image);
//important to clean up
imagedestroy($image);
imagedestroy($watermark);
?>
Books :
Sponsors :
Random Code :
count characters in a sentence(string)Dynamic title tags(Wordpress)
IP address to host name(internet)
Random Article :
How to make a simple form mailer with PHPFor Automated Sites PHP and MySQL are A Perfect Match
Network:
Programming resourcesTutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google