|
| Web Hosting Deals | Holiday Logo Design | Webcam Chat | Website Header Templates | Register domain | Search Engine Optimisation | Web Hosting |
|
|||||||
| PHP / Perl / Java / JavaScript / CGI Tutorials PHP / Perl / Java / JavaScript / CGI Tutorials Please do not use this Forum to advertise your site or to link to tutorials. |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Water Mark Images
Provided by www.dontplaywithyourself.com
Watermark Watermark your images using PHP Do you have an image that you want to keep a copyright on? Putting you logo or a URL of your website on each and every image is a quite a long and tedious process so here is a solution in PHP that will help you make things easier and neater. Using this script one can specify two images: the image to be watermarked and the watermark itself. If you have several images do not waste time putting your watermark on each and every image. Just use this script and all your images are watermarked <?php header('content-type: image/jpeg'); //tells the webserver that the output will be an image $_image = "snippetcollection.jpg"'; $watermark = 'watermark.png'; $watermark = imagecreatefrompng($watermark); //gets the watermark //gets the dimensions of the watermark $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); $image = imagecreatetruecolor($watermark_width, $watermark_height); //gets the image to put the watermark on and related information about it $image = imagecreatefromjpeg($_image); $size = getimagesize($_image); $dest_x = $size[0] - $watermark_width - 5; $dest_y = $size[1] - $watermark_height - 5; imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100); imagejpeg($image); imagedestroy($image); imagedestroy($watermark); ?> |
|
||||
|
I am sorry but this is the final straw.
I am going to put the rest of this message in block capitals, so that even you can understand this. DEAR LORD. EXPLAIN YOUR CODE. Hope you got the message! Base
__________________
http://www.pointserv.co.uk/gfx/deal_..._pointserv.png PointServ.co.uk - One of the UK's cheapest webhosting companies. |
|
||||
|
Quote:
it says "PHP / Perl / Java / JavaScript / CGI Tutorials" not scripts
__________________
OUTLAW-WEB.NET |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|