Http://www.cnblogs.com/jennybackup/p/3951935.html
M4java package as: 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
Linux under:
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. Test whether the installation is successful, use the command to view the GraphicsMagick supported picture format:
# GM Convert-list formats
....... Show all supported pictures
4. View the GM installation path:
# which GM
/USR/LOCAL/BIN/GM (the installation path shown)
5. Set environment variable
# Vi/etc/profile
Add the following configuration at the end of the/etc/profile file:
IM4JAVA_TOOLPATH=/USR/LOCAL/BIN/GM (Im4java package requirements, specific reference http://im4java.sourceforge.net/docs/dev-guide.html)
6. Set up authorization
Assigning ZXIN10 users access to the GraphicsMagick installation directory
The above installation steps are done under root, so you need to give ZXIN10 users access rights after the installation is complete, otherwise, ZXIN10 users will be able to intercept the picture, the error org.im4java.core.CommandException: Java.io.IOException:Cannot Run Program "GM": Java.io.ioexception:error=13, Permission denied.
Log on using the root user, and then execute the following command:
# Chown-r ZXIN10:USERS/USR/LOCAL/BIN/GM