I'd echo phil's question. Imagemagick and Perl is teh sex.