please help:put images together

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
sara933
Forum Newbie
Posts: 11
Joined: Thu May 15, 2008 10:01 am

please help:put images together

Post by sara933 »

hi
i want to put some images(gotten from mysql database)together that it seems one picture ,and i want to put a random background each time it is loaded for it.how can i do this?could anyone help me please?
Regards
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: please help:put images together

Post by onion2k »

Open the background image (with imagecreatefromstring() as its from a db), then open the other image, and use imagecopy() to copy it on to the background, and then send the result to the user.
Post Reply