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

Channel: Linux
Abstract: How To Install ImageMagick (And Imagick) With jp2 Support On CentOS (6.0) This tutorial describes how to install ImageMagick and imagik with jp2 suppo
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.

Ref From: howtoforge
Channels: centosphp

Related articles