GD Image Combining***

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wh33t
Forum Newbie
Posts: 12
Joined: Wed Nov 30, 2005 2:09 am

GD Image Combining***

Post by wh33t »

8)

Wuzzup guys :D

My question is fairly simple I think. I basically just wanna add my watermark to any image that users upload to my website. I've already got the image uploading working fine, I just wanna know how to crop the image to a specific size, and then stick my little logo on it.. Any thoughts, links or points in the right direction woudl be great. I'll continue searching until I hear something back from the community.

Update**

I'm currently trying this out.
http://codewalkers.com/tutorials/78/2.html
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Do you really mean crop? Not resize?

As for the watermarking.. I answered this the other day in the graphics folder: viewtopic.php?t=40358 .. there's two solutions in there, one to resize the watermark to cover the whole image, and one to tile the watermark over the image. Both solutions assume that the watermark is a transparent PNG file. If you just want to add the watermark in a corner or something you'll need to modify the imagecopyresampled() arguments a bit.
wh33t
Forum Newbie
Posts: 12
Joined: Wed Nov 30, 2005 2:09 am

Post by wh33t »

Sweet dude, thanks for replying. I'm new to the forums so forgive my wrong and duplicate posting. Sometimes its hard to know what to search for and what not. Appreciate it man.

Oooh yes, and I meant Resize. sorry very late here.
Post Reply