1) create thumnails from the image
http://www.icant.co.uk/articles/phpthumbnails/
2) add watermark in the large image http://www.developertutorials.com/tutorials/php/adding-custom-text-to-image-050620/page1.html
In this blog, i am posting good coding techniques.