Installing ImageMagick on Fedora Core 5 is as simple as using the yum utility:
yum install ImageMagick
There’s a little information on this here:
http://www.gria.org/docs/5.0.1/user-guide/installation/services/fc5-pre.html
You can then test on the command line:
http://www.imagemagick.org/script/convert.php