Join two images together

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
A7x
Forum Newbie
Posts: 10
Joined: Thu Mar 03, 2011 6:07 am

Join two images together

Post by A7x »

Hi there.

I'm stuck at one problem and I don't know how should I solve this problem, I hope you guys can help me out. I don't need the entire script, just point to the right direction. I have two images. First is a border with alpha channel, let's say this is my image:
(note: You need to click the image in order to see it.)
Image

Now I have the second one, something like this:
Image

I would like to join these two images together. I have no idea how to do that. Basically, I want to add a border to the 'sun' image via PHP script.

Thank you
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Join two images together

Post by Celauran »

A7x
Forum Newbie
Posts: 10
Joined: Thu Mar 03, 2011 6:07 am

Re: Join two images together

Post by A7x »

i cant believe i forgot about GD image library. thank you. :)
Post Reply