(教學)在Ubuntu裡建立Apache with Tomcat 服務-2

前一篇資料(教學)在Ubuntu裡建立Apache with Tomcat 服務-1

再來要介紹JMagick及ImageMagick的安裝 in Ubuntu 9.10(Linux)

包含jpeg及png支援

1.安裝zlib ->jpeg需使用

#cd /opt/ 
#sudo wget http://www.zlib.net/zlib-1.2.3.tar.gz 
#sudo tar zxvf zlib-1.2.3.tar.gz 
#cd /opt/zlib-1.2.3 
#sudo ./configure 
#sudo make 
#sudo make install

2.安裝jpeg lib 使其支援jpeg jpg格式

#sudo mkdir /usr/local/modules 
#sudo mkdir /usr/local/modules/jpeg6 
#sudo mkdir /usr/local/modules/jpeg6/bin 
#sudo mkdir /usr/local/modules/jpeg6/lib 
#sudo mkdir /usr/local/modules/jpeg6/include 
#sudo mkdir /usr/local/modules/jpeg6/man 
#sudo mkdir /usr/local/modules/jpeg6/man/man1 
#cd /opt/ 
#sudo wget http://ftp.ntu.edu.tw/gnu/pub/gnu/ghostscript/jpegsrc.v6b.tar.gz 
#sudo tar zxvf jpegsrc.v6b.tar.gz 
#cd /opt/jpeg-6b 
#sudo ./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static 
#sudo make 
#sudo make install

3.安裝png lib 使其支援png格式

#cd /opt/ 
#sudo wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.34.tar.gz?download 
#sudo tar zxvf libpng-1.2.34.tar.gz 
#cd /opt/libpng-1.2.34 
#sudo ./configure 
#sudo make 
#sudo make install

4.安裝ImageMagick

#cd /opt/ 
#sudo wget http://sourceforge.net/projects/imagemagick/files/ImageMagick/6.2/ImageMagick-6.2.6-8.tar.gz/download 
#sudo tar -zxvf ImageMagick-6.2.6-8.tar.gz 
#cd /opt/ImageMagick-6.2.6 
#sudo ./configure 
#sudo make all 
#sudo make install

4.安裝JMagick ->java call ImageMagick用

#cd /opt 
#sudo wget http://downloads.jmagick.org/6.2.6/JMagick-6.2.6-0.tar.gz 
#sudo tar -zxvf JMagick-6.2.6-0 
#cd /opt/JMagick-6.2.6-0 
#./configure 
#sudo make all 
#sudo make install 
#sudo cp /opt/JMagick-6.2.6-0/lib/jmagick.jar /etc/tomcat5/common/lib/ 
#sudo cp /opt/JMagick-6.2.6-0/lib/libJMagick.so /usr/lib/jvm/java-6-sun/jre/lib/i386/

測試的方法請看下一篇

JMagick及ImageMagick的介紹如下

JMagick-Java open source free影像壓縮

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料