How To Install ImageMagick (And Imagick) With jp2 Support On CentOS (6.0)
This tutorial describes how to install ImageMagick and imagik with jp2 support on CentOS 6.0.if(typeof __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-box-3-0’)};
1. First we have to remove imagemagick.if(typeof __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-medrectangle-3-0’)};
yum remove ImageMagick
2. Now install some dependencies.
yum install jasper-devel
yum install jasper
3. Download tar.gz from www.imagemagick.org.
cd /tmp
wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.7.3-1.tar.gz
4. Install:
tar zxf ImageMagick-6.7.3-1.tar.gz
cd ImageMagick-6.7.3-1
./configure –prefix=/usr –with-modules –with-perl=/usr/bin/perl –with-jp2 –enable-shared –disable-static –without-magick-plus-pus
make
make install
5. Install another dependency:
yum install ImageMagick-devel
6. Install imagick:if(typeof __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-medrectangle-4-0’)};
pecl install imagick
7. Next we edit /etc/php.ini and add extension=imagick.so:
vi /etc/php.ini
Press a to start editing, add extension=imagick.so and then press Escape and write 😡. And the classic Enter.
Restart Apache:
service httpd restart
Now you should see “imagick” and “.jp2” in phpinfo();.
Good luck.if(typeof __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-box-4-0’)};