Im4java Package : Im4java-1.2.0.jar directly under the Lib reference can be
The installation of GraphicsMagick is as follows:
Under Windows:
Installation: Graphicsmagick-1.3.12-q16.zip
and configure the GraphicsMagick installation path
Under Linux:
Installation: graphicsmagick-1.3.18.tar.gz
1, decompression graphicsmagick-1.3.12.tar.gz bag
# TAR-XVZF Graphicsmagick-1.3.12.tar.gz
# CD GraphicsMagick-1.3.12
...........
2. The next step is to install
# make
# make Install
3. To test if the installation is successful, use the command to view the image formats supported by GraphicsMagick:
# GM Convert-list formats
....... Show all supported images
4. Check the installation path of the GM:
# which GM
/USR/LOCAL/BIN/GM (Displays the installation path)
5. Setting Environment variables
# Vi/etc/profile
At the end of the/etc/profile file, add the following configuration:
Im4java_toolpath= "/USR/LOCAL/BIN/GM" (Im4java package requirements, specific reference http://im4java.sourceforge.net/docs/dev-guide.html)
6. Setting Up authorization
Give ZXIN10 users access to the GraphicsMagick installation directory
The above installation steps are under the root user, so after the installation is completed need to give ZXIN10 users access rights, or ZXIN10 users under the interception of images, will be error org.im4java.core.CommandException: Java.io.IOException:Cannot Run Program "GM": Java.io.ioexception:error=13, Permission denied.
Log in with the root user and execute the following command:
# Chown-r ZXIN10:USERS/USR/LOCAL/BIN/GM
Graphicsmagick+im4java configuration under Windows and Linux