class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
How can I use the class to process the watermark so it has the same size of the upladed inage before using it as watermark.
I will make sure the watermark is large enough so it can always be shrinked to fit the image.
But I don't know how to do it.
Can you help me a bit?