To install imagemagick with imagick extension on centos follow these steps:
yum install -y ImageMagick ImageMagick-devel imagick
After, include file for imagick.so module and restart apache:
echo “extension=imagick.so” > /etc/php.d/imagick.ini
/etc/init.d/httpd restart