You'll need a bunch of .gif images of the character and the clothes.
The background on all of them will be white (transparency color), and
the images will all be the same size. Basically, what the script can do
is "overlay" one on top of the other. Each image adds (or overlays) over
the basic character body as the bottom image. Each piece of clothing
is placed on the white image so it matches-up with the character's body.
They can be layered so that you put them on in a certain order. Any
part of the images that are "white" will show whatever is underneath,
as "white" is your tranparent color.
I think you can use either GIF or PNG, as they both allow transparencies.
GIF is probably easier to work with, but has limited colors. You can't use JPG/JPEG.
PHP (the GD library) will add one over the other, or multiple images and create
one GIF image to output to the browser. It's sort of creating a watermark, if you
wish to Google it: PHP GD overlay gif images
Last edited by mlseim; 08-13-2012 at 08:38 PM..