Graphicsmagick+im4java in Windows and Linux configuration __ function

Source: Internet
Author: User


M4java package as: Im4java-1.2.0.jar directly under the Lib reference can be

The installation of GraphicsMagick is as follows:

Under Windows:


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

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: Run Program "GM":, Permission denied.
Log on using the root user, and then execute the following command:

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: 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.