Linux installation ImageMagick and JMagick complete process and configuration tutorial

  
 

First, the installation background
Recently deployed HapiCMS products on the server, because its compression of the image is implemented by ImageMagick, so you need to install ImageMagick and jmagick on the server, write the operation process, Share with you, including rpm mode installation, linux32-bit installation ImageMagick and jmagick, linux64 bit installation ImageMagick and jmagick, if you have any questions you can leave a message, if there is time, it will promptly reply.


Second, ImageMagick Introduction
ImageMagick is a picture processing program developed in C language. You can resize, rotate, sharpen, subtract, or add effects to your images. The operation of the image can be done from the command line, or in C/C++, Perl, Java, PHP
, Python or Ruby programming. ImageMagick's official website is: http://www.imagemagick.org/script/index.php Since we are a java project, it is not possible to directly use ImageMagick via JNI technology. Because ImageMagick was developed without using the header files generated by java JNI. Can be solved with jmagick, jmagick is developed by c language, the development uses the header file generated by java JNI, so java can call jmagick through JNI technology. Jmagick then calls ImageMagick. Here we use the java interface exposed by jmagick. You can also use JNA to call ImageMagick. The full name of JNA is Java Native Access. JNA is based on JNI and is convenient for us to develop. The JNA project home page is https://github.com/twall/jna. Calling ImageMagick with JNA requires direct manipulation of the C interface (API) provided by ImageMagick.

Three, make sure the system has installed the following package
# yum install libjpeg# yum install libjpeg-devel# yum install libpng# yum install libpng-devel# yum install libtiff# yum install libtiff-devel# yum install Libungif# yum install libungif-devel# yum install freetype# yum install zlib can be viewed with the following command
#rpm -qa

Copyright © Windows knowledge All Rights Reserved