This script applies a watermark on a JPG, GIF or PNG image. The watermark comes from a 24-bit PNG that preserve empty areas around the logo. I recommend Photoshop to make it. This is the only script that changes the opacity of an image before pasting to another. For indeed, PHP5 and GD2 library does not own filter opacity. Operation is simple. It analyzes the color of each pixel of the watermark and redraws it on a blank image. If the pixel is transparent (alpha value 127 or greater than 100), he redesigned a completely transparent pixel. It remains only to stick the tattoo on the image.
You can code positioning and resizing options to meet every desire.