Graphicsmagick+im4java configuration under Windows and Linux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.