Posted on 2010/01/18 01:05
Filed Under 잇[iT]/서버



 



ImageMagick 설치 (gd 와 비슷하지만 더 기능이 좋은 그래픽 라이브러리엔진)


1. JPEG Library 다운 - http://www.ijg.org/
바로 다운로드 http://www.ijg.org/files/jpegsrc.v8.tar.gz

tar zxvf jpegsrc.v8.tar.gz
cd jpeg-8
./configure -enable-shared
make
make install

마지막의 make install 은 관리자 권한으로 하여야 하며, 설치가 되면 테스트를 해보자.


/usr/local/bin/cjpeg --help

뭐라뭐라 실행되면서 도움말이 뜨나?? 그럼 제대로 설치가 됐으니 다음으로...



2. PNG Library 다운 -  http://www.libpng.org/pub/png/libpng.html
바로 다운로드 ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.0.tar.gz

tar zxvf libpng-1.4.0.tar.gz
cd libpng-1.4.0
./configure
make
make install

설치가 끝났으면 파일이 제대로 있나 확인해보자.

ls /usr/local/lib/pkgconfig/



3. TIFF Library 다운 - http://www.libtiff.org/
바로 다운로드 - http://dl.maptools.org/dl/libtiff/index.php?file=tiff-3.8.2.tar.gz&ACTION=SUBMIT

tar zxvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure
make
make install

설치가 끝났으면 다음 명령어를 내려보자

tiffinfo

뭔가가 영어로 뜬다면 정상이다...


4. ImageMagick 다운 - http://www.imagemagick.org/script/index.php
바로 다운로드 - ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.5.9-0
./configure --prefix=/usr/local/ImageMagick --with-quantum-depth=32 --with-jpeg=yes --with-png=yes --with-tiff=yes --with-zlib=yes --with-xml=yes --without-perl
make
make install

configure 의 옵션중 --with-quantum-depth=32 는 본인의 서버 사양이 좋지 않은 이상 웬만하면 생략하자. (CPU가 1개면서 메모리 4기가 이하)


5. 설치가 끝났다면 이제 ImageMagick 최종 테스트!

/usr/local/ImagicMagick/bin/Magick-config --version
/usr/local/ImagicMagick/bin/convert -list format

Magick-config --version 은 6.5.9 Q32 로 버전이 나오고 두번째 는 관련 리스트가 주루룩 나온다.

바로 사용하고자 할 경우 /usr/local/ImagicMagick/bin 디렉토리를 패스로 등록해주면 된다.



2010/01/18 01:05 2010/01/18 01:05

About

by 아이포니어

Counter

· Total
: 25297
· Today
: 28
· Yesterday
: 94