Installation configuration for ImageMagick and Jmagick under Linux __linux

Source: Internet
Author: User
Tags bz2 imagemagick

Say Linux under the ImageMagick and Jmagick installation process, download imagemagick-6.2.6-8.tar.gz,jmagick-6.2.6-0.tar.gz and I downloaded the jpegsrc.v6b.tar.gz, LIBPNG-1.2.10.TAR.BZ2 and tiff-3.8.2.tar.gz, user support Jpg,png and TIFF format files, I really do not know how foreigners think, image processing does not support JPG and PNG application should not be much, why not put together , and a different installation.

Compile and install the JPG format support file,

Tar zvxf jpegsrc.v6b.tar.gz

./configure--enable-shared--enable-static

Make

Su

Make install

Installing PNG support Files

BUNZIP2 libpng-1.2.10.tar.bz2

Tar xvf Libpng-1.2.10.tar

./configure

Make

Su

Make install

Compiling and installing TIFF support files

Compile and install the JPG format support file,

Tar zvxf tiff-3.8.2.tar.gz

./configure

Make

Su

Make install

Modify the ImageMagick profile configure

--without-jpeg=false Disable JPEG support

--without-png=false Disable PNG support

--without-tiff=false Disable TIFF Support

Compile and install ImageMagick

Tar zvxf imagemagick-6.2.6-8.tar.gz

./configure

Make all

Su

Make install

Use Convert to see if you can convert files

Compile and install Jmagick

Tar zvxf jmagick-6.2.6-0.tar.gz

./configure

Make

Su

Make install

Configure the current user's profile. Bash_profile, or configure all users/etc/profile

Increase

Ld_library_path=/usr/local/lib:.. /.. /lib:

Export Ld_library_path

and configure the Classpath directory

Installation Complete

======================================================

Install ImageMagick and Jmagick on Ubuntu/debian

1. Install ImageMagick
sudo apt-get install ImageMagick
2. Install Jmagick
sudo apt-get install Libjmagick6-java
3. Copy Jmagick jars to your classpath
e.g.
Cp/usr/share/java/jmagick*.jar/usr/local/apache-tomcat-5.5.27/common/lib
4. Copy libjmagick.so to a folder listed in ' Java.library.path '
cp/usr/lib/jni/libjmagick.so/usr/lib/
/* Maybe you should change the permission of the so too * *
sudo chmod 777/usr/lib/libjmagick.so
The fourth step is because I was wrong when I tested Jmagick.
Java.lang.UnsatisfiedLinkError:no Jmagick in Java.library.path.
The results were printed system.getproperty ("Java.library.path"), which had/usr/lib, rather than/usr/lib/jni.
So you need to copy the libjmagick.so to the/usr/lib.

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.