Hey everyone, Hopefully someone can help me here. I have an upload script on my website: http://www.sportingprofiles.com/add_a_sporting_profile.php For every image that gets uploaded I want it to have my logo on, how is this possible and what filesize do I need to save the logo as in order for it to go on the image? Thanks, Steve
Use GD or imagemagic. Make sure your php installation has GD compiled before trying to use any GD functions. Otherwise, it's pretty easy. You will want to load the uploaded image and then copymerge your own image onto it. Do a search for GD watermark. You should be able to find a number of tutorials on how to accomplish it.
yes GD library works fine... you have to contact your host about your options... they usually have imagemagick and GD active on their servers...
Thanks for your help people, the only problem now is the background of the logo isnt transparent over the image, what file should it be saved as?
Usually a carefully planned PNG is the best way to go. I don't think GD or image magic support vector based images so it may be difficult to get a good overlap without the edges being messed up.