snippet library logo
in category
PHP / Image Manipulation / transparent copyright
Snippet details
ID: 505
Viewed: 1540
Added: 2003-05-31
Version: 1.0
Sorry no demo

User Rated at: 3 Stars
Rate This:
Snippets in this catagory         
Show Printable Version
This is ONLY one of the ways you can protect your images, well it will slow them down from stealing your images.

this is a pretty easy and short script. it takes the GD Library and php4.1+

use at your own risk and it is not meant to be a total protection script. the only possible way to protect your images is to not show them on the net.

Browsers: all

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: cj-design

<!---Head--->
none

<!---Body--->


<?php
// these are the main images that will be used
$image "copyright.png";
$image2 "mainimage.jpg";

// here we copy those images and 
//make our own with the GD Library
$copy_image imagecreatefrompng($image);
$copy_specs getimagesize($image);
$main_image imageCreateFromJPEG($image2);
$main_specs getimagesize($image2);

// make a transparent image from the copyright image above
imagecolortransparent ($copy_imageimagecolorat($copy_image00));

// copy the original image and put the 
//transparent over it. so it is one image.
imageCopy($main_image$copy_image$destx$desty00$copy_specs[0], $copy_specs[1]);

// this outputs the new image with the copyright over it.
imageJPEG($main_image,"newimage.jpg",100);

// destroy the newly made images.
imageDestroy($main_image);
imageDestroy($copy_image);

?>




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.