What we are looking for is a php script that can take a 468X60 jpeg or gif file as a template, and overlay custom text to customizble positions. Also we would like the script to be able to resize a picture(jpeg or gif) to a customizable size and overlay a photo as well. Then flatten it as a gif or a jpeg.
You may use up to php 5.2. OO or procedural style is ok. OO is prefered. We would prefer that the script be broken up in to functions or methods. For later reuse. Please include a test file and comment your code.