in reply to Manipulating Images with Perl

PerlMagick, a Perl module to access ImageMagick's functionality from Perl should do all you want (and probably much more ;-)

Hope this helps, -gjb-