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.