Not a Member Yet,
Click here to Register
How do you like the new design?
It's cool, great job
[tally: 70%] 70%
It's okay
[tally: 20%] 20%
Its OK but I liked the old layout better
[tally: 0%] 0%
Please bring the old one back
[tally: 10%] 10%

votes: 10

ID: 505
Viewed: 3463
Added: May 31, 2003
Version: 1.0
Snippet uploaded by: snippet
Written By: cj-design
Demo: Sorry, no demo

User Rated at: 3 Stars3 Stars3 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

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



// 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_image, imagecolorat($copy_image, 0, 0));

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

// this outputs the new image with the copyright over it.

// destroy the newly made images.


No Comments to show

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

Replying to a Comment...

Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2018 All Rights Reserved. Conditions