I want to make a script that composes an image depending on several variables. The image is composed of a base piece of clothing (e.g. t-shirt) on which an image and text can be placed. The color of the piece of clothing; the location of the image, the image itself and the text are variable. Also the font of the text can change. Is there a base script I can use? Or is there a small script that handles a piece of the desired functionality?

Probably this is a thing better done in flash. But I don't know flash and really don't want to either.

I think it's also possible with javascript and for the font I think I can use http://www.mikeindustries.com/sifr/

But if anyone knows of other scripts that can be usefull here or has tips for me, please tell! Existing flash script that don't need much tweaking are welcome too.