http://www.phpclasses.org/browse/package/3157.html?
http://phpspot.org/blog/archives/2006/10/phpgifimage_fla.html