PHP Creating watermark image

How to create image watermark using php?This is describes how to create simple watermark image using php.Valid image formats are jpg,jpeg,png,gif.Tested in many browsers.Uploaded file type is same to final image type.Only you have to call to the function and get output.
Everything I’ll describes here simply by commenting.
This is the php function.

This is the html form.

Now see, how to call to this function.

Now put this all together.

That’s only.
View Demo

Download PHP Creating watermark image Example (6 KB)