How To Install ImageMagick (And Imagick) With jp2 Support On CentOS (6.0)

Want to support HowtoForge? Become a subscriber!
 
Submitted by ShadowElf2 (Contact Author) (Forums) on Wed, 2011-11-02 08:46. :: CentOS | PHP

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.

1. First we have to remove imagemagick.

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:

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 :x. And the classic Enter.

Restart Apache:

service httpd restart

Now you should see "imagick" and ".jp2" in phpinfo();.

Good luck.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Leonardo (not registered) on Sun, 2012-08-26 00:06.

--without-magick-plus-pus ->  --without-magick-plus-plus