in reply to How do I invoke ImageMagick

It sounds like you want Image::Magick, note it has a complete website dedicated to this: http://www.imagemagick.org/www/perl.html.