728x90
반응형
ImageMagick은 PHP의 이미지 처리 라이브러리로 속도는 약간 떨어지지만, 적은 메모리 사용량과 좋은 화질의 이미지 처리 결과를 얻을 수 있어서 php에서 주로 사용하는 라이브러리이다.
YUM을 통해 설치하는 과정에 대해 알아보자.
1. yum 저장소에서 설치할 수 있는 ImageMagick 패키지가 있는 지 확인
[root@test ~]# yum list ImageMagick
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.navercorp.com
* epel: ftp.riken.jp
* extras: mirror.navercorp.com
* nux-dextop: li.nux.ro
* remi-safe: ftp.riken.jp
* updates: mirror.navercorp.com
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Available Packages
ImageMagick.i686 6.9.10.68-6.el7_9 updates
ImageMagick.x86_64 6.9.10.68-6.el7_9 update
2. yum install -y ImageMagick 명령을 통해 설치
[root@test ~]# yum install -y ImageMagick
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.navercorp.com
* epel: ftp.riken.jp
* extras: mirror.navercorp.com
* nux-dextop: li.nux.ro
* remi-safe: ftp.riken.jp
* updates: mirror.navercorp.com
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.x86_64 0:6.9.10.68-6.el7_9 will be installed
--> Processing Dependency: urw-base35-fonts for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libwmflite-0.2.so.7()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libtiff.so.5()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: librsvg-2.so.2()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
--> Processing Dependency: libopenjp2.so.7()(64bit) for package: ImageMagick-6.9.10.68-6.el7_9.x86_64
.... 생략 45/45
Installed:
ImageMagick.x86_64 0:6.9.10.68-6.el7_9
Dependency Installed:
OpenEXR-libs.x86_64 0:1.7.1-8.el7 adobe-mappings-cmap.noarch 0:20171205-3.el7 adobe-mappings-cmap-deprecated.noarch 0:20171205-3.el7
adobe-mappings-pdf.noarch 0:20180407-1.el7 cairo.x86_64 0:1.15.12-4.el7 cups-libs.x86_64 1:1.6.3-51.el7
gdk-pixbuf2.x86_64 0:2.36.12-3.el7 ilmbase.x86_64 0:1.0.3-7.el7 jasper-libs.x86_64 0:1.900.1-33.el7
jbigkit-libs.x86_64 0:2.0-11.el7 lcms2.x86_64 0:2.6-3.el7 libXcursor.x86_64 0:1.1.15-1.el7
libXft.x86_64 0:2.3.2-2.el7 libXinerama.x86_64 0:1.1.3-2.1.el7 libXmu.x86_64 0:1.1.2-2.el7
libXrandr.x86_64 0:1.5.1-2.el7 libXrender.x86_64 0:0.9.10-1.el7 libXt.x86_64 0:1.1.5-3.el7
libXxf86misc.x86_64 0:1.0.3-7.1.el7 libfontenc.x86_64 0:1.1.3-3.el7 libgs.x86_64 0:9.25-5.el7
libpaper.x86_64 0:1.1.24-9.el7 librsvg2.x86_64 0:2.40.20-1.el7 libthai.x86_64 0:0.1.14-9.el7
libtiff.x86_64 0:4.0.3-35.el7 libtool-ltdl.x86_64 0:2.4.2-22.el7_3 libwmf-lite.x86_64 0:0.2.8.4-44.el7
openjpeg2.x86_64 0:2.3.1-3.el7_7 pango.x86_64 0:1.42.4-4.el7_7 pixman.x86_64 0:0.34.0-1.el7
urw-base35-bookman-fonts.noarch 0:20170801-10.el7 urw-base35-c059-fonts.noarch 0:20170801-10.el7 urw-base35-d050000l-fonts.noarch 0:20170801-10.el7
urw-base35-fonts.noarch 0:20170801-10.el7 urw-base35-fonts-common.noarch 0:20170801-10.el7 urw-base35-gothic-fonts.noarch 0:20170801-10.el7
urw-base35-nimbus-mono-ps-fonts.noarch 0:20170801-10.el7 urw-base35-nimbus-roman-fonts.noarch 0:20170801-10.el7 urw-base35-nimbus-sans-fonts.noarch 0:20170801-10.el7
urw-base35-p052-fonts.noarch 0:20170801-10.el7 urw-base35-standard-symbols-ps-fonts.noarch 0:20170801-10.el7 urw-base35-z003-fonts.noarch 0:20170801-10.el7
xorg-x11-font-utils.x86_64 1:7.5-21.el7 xorg-x11-server-utils.x86_64 0:7.7-20.el7
Complete!
3. 정상적으로 설치가 되었는 지 rpm -qa 명령어를 통해 확인
[root@test ~]# rpm -qa |grep ImageMagick
ImageMagick-6.9.10.68-6.el7_9.x86_64
4. 설치된 ImageMagick의 자세한 버전 확인
[root@test ~]# yum list installed ImageMagick
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.navercorp.com
* epel: ftp.riken.jp
* extras: mirror.navercorp.com
* nux-dextop: li.nux.ro
* remi-safe: ftp.riken.jp
* updates: mirror.navercorp.com
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Installed Packages
ImageMagick.x86_64 6.9.10.68-6.el7_9 @updates
728x90
'언어 > PHP' 카테고리의 다른 글
date 함수 이용 시, 시간이 맞지 않을 때 (feat date.timezone) (0) | 2022.11.10 |
---|