ImageMagick is a free and open-source software suite for displaying, converting, and editing raster image and vector image files. It can read and write over 200 image file formats.
Step 1: Download: https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-7.0.8-12.x86_64.rpm
[root@tutorialspots ~]# wget https://imagemagick.org/download/linux/CentOS/x86_64/Imag eMagick-7.0.8-12.x86_64.rpm --2018-10-12 13:33:17-- https://imagemagick.org/download/linux/CentOS/x86_64/Im ageMagick-7.0.8-12.x86_64.rpm Resolving imagemagick.org (imagemagick.org)... 198.72.81.86 Connecting to imagemagick.org (imagemagick.org)|198.72.81.86|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 139368 (136K) [application/x-rpm] Saving to: `ImageMagick-7.0.8-12.x86_64.rpm' 100%[======================================>] 139,368 695KB/s in 0.2s 2018-10-12 13:33:18 (695 KB/s) - `ImageMagick-7.0.8-12.x86_64.rpm' saved [139368 /139368]
Step 2: Download: https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-7.0.8-12.x86_64.rpm
[root@tutorialspots ~]# wget https://imagemagick.org/download/linux/CentOS/x86_64/Imag eMagick-libs-7.0.8-12.x86_64.rpm --2018-10-12 13:34:40-- https://imagemagick.org/download/linux/CentOS/x86_64/Im ageMagick-libs-7.0.8-12.x86_64.rpm Resolving imagemagick.org (imagemagick.org)... 198.72.81.86 Connecting to imagemagick.org (imagemagick.org)|198.72.81.86|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2568552 (2.4M) [application/x-rpm] Saving to: `ImageMagick-libs-7.0.8-12.x86_64.rpm' 100%[======================================>] 2,568,552 5.25MB/s in 0.5s 2018-10-12 13:34:41 (5.25 MB/s) - `ImageMagick-libs-7.0.8-12.x86_64.rpm' saved [ 2568552/2568552]
Step 3: Install dependencies:
3.1: libopenjp2
[root@tutorialspots ~]# yum install openjpeg2-devel -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.umflint.edu * epel: mirror.uic.edu * extras: centos.den.host-engine.com * ius: dfw.mirror.rackspace.com * nux-dextop: mirror.li.nux.ro * remi-safe: mirror.bebout.net * updates: centos.den.host-engine.com Resolving Dependencies --> Running transaction check ---> Package openjpeg2-devel.x86_64 0:2.3.0-6.el7 will be installed --> Processing Dependency: openjpeg2-tools(x86-64) = 2.3.0-6.el7 for package: op enjpeg2-devel-2.3.0-6.el7.x86_64 --> Processing Dependency: openjpeg2(x86-64) = 2.3.0-6.el7 for package: openjpeg 2-devel-2.3.0-6.el7.x86_64 --> Processing Dependency: libopenjp2.so.7()(64bit) for package: openjpeg2-devel -2.3.0-6.el7.x86_64 --> Running transaction check ---> Package openjpeg2.x86_64 0:2.3.0-6.el7 will be installed ---> Package openjpeg2-tools.x86_64 0:2.3.0-6.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: openjpeg2-devel x86_64 2.3.0-6.el7 epel 24 k Installing for dependencies: openjpeg2 x86_64 2.3.0-6.el7 epel 153 k openjpeg2-tools x86_64 2.3.0-6.el7 epel 73 k Transaction Summary ================================================================================ Install 1 Package (+2 Dependent packages) Total download size: 250 k Installed size: 658 k Downloading packages: (1/3): openjpeg2-2.3.0-6.el7.x86_64.rpm | 153 kB 00:00 (2/3): openjpeg2-devel-2.3.0-6.el7.x86_64.rpm | 24 kB 00:00 (3/3): openjpeg2-tools-2.3.0-6.el7.x86_64.rpm | 73 kB 00:00 -------------------------------------------------------------------------------- Total 554 kB/s | 250 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : openjpeg2-2.3.0-6.el7.x86_64 1/3 Installing : openjpeg2-tools-2.3.0-6.el7.x86_64 2/3 Installing : openjpeg2-devel-2.3.0-6.el7.x86_64 3/3 Verifying : openjpeg2-2.3.0-6.el7.x86_64 1/3 Verifying : openjpeg2-devel-2.3.0-6.el7.x86_64 2/3 Verifying : openjpeg2-tools-2.3.0-6.el7.x86_64 3/3 Installed: openjpeg2-devel.x86_64 0:2.3.0-6.el7 Dependency Installed: openjpeg2.x86_64 0:2.3.0-6.el7 openjpeg2-tools.x86_64 0:2.3.0-6.el7 Complete!
3.2: libwmflite
[root@tutorialspots ~]# yum install -y libwmf-lite Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.umflint.edu * epel: fedora-epel.mirror.lstn.net * extras: centos.den.host-engine.com * ius: dfw.mirror.rackspace.com * nux-dextop: mirror.li.nux.ro * remi-safe: mirror.bebout.net * updates: centos.den.host-engine.com Resolving Dependencies --> Running transaction check ---> Package libwmf-lite.x86_64 0:0.2.8.4-41.el7_1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: libwmf-lite x86_64 0.2.8.4-41.el7_1 base 66 k Transaction Summary ================================================================================ Install 1 Package Total download size: 66 k Installed size: 143 k Downloading packages: libwmf-lite-0.2.8.4-41.el7_1.x86_64.rpm | 66 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libwmf-lite-0.2.8.4-41.el7_1.x86_64 1/1 Verifying : libwmf-lite-0.2.8.4-41.el7_1.x86_64 1/1 Installed: libwmf-lite.x86_64 0:0.2.8.4-41.el7_1 Complete!
3.3: librsvg-2
[root@s126368 ~]# yum install -y librsvg2 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.umflint.edu * epel: fedora-epel.mirror.lstn.net * extras: centos.den.host-engine.com * ius: dfw.mirror.rackspace.com * nux-dextop: mirror.li.nux.ro * remi-safe: mirror.bebout.net * updates: centos.den.host-engine.com Resolving Dependencies --> Running transaction check ---> Package librsvg2.x86_64 0:2.40.16-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: librsvg2 x86_64 2.40.16-1.el7 base 128 k Transaction Summary ================================================================================ Install 1 Package Total download size: 128 k Installed size: 291 k Downloading packages: librsvg2-2.40.16-1.el7.x86_64.rpm | 128 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : librsvg2-2.40.16-1.el7.x86_64 1/1 Verifying : librsvg2-2.40.16-1.el7.x86_64 1/1 Installed: librsvg2.x86_64 0:2.40.16-1.el7 Complete!
3.4: libgs
[root@tutorialspots ~]# yum install -y ghostscript Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.umflint.edu * epel: mirror.uic.edu * extras: centos.den.host-engine.com * ius: dfw.mirror.rackspace.com * nux-dextop: mirror.li.nux.ro * remi-safe: mirror.bebout.net * updates: centos.den.host-engine.com Resolving Dependencies --> Running transaction check ---> Package ghostscript.x86_64 0:9.07-28.el7_4.2 will be installed --> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript-9.07-28.el7 _4.2.x86_64 --> Processing Dependency: ghostscript-fonts for package: ghostscript-9.07-28.el 7_4.2.x86_64 --> Running transaction check ---> Package ghostscript-fonts.noarch 0:5.50-32.el7 will be installed --> Processing Dependency: xorg-x11-font-utils for package: ghostscript-fonts-5. 50-32.el7.noarch ---> Package urw-fonts.noarch 0:2.4-16.el7 will be installed --> Running transaction check ---> Package xorg-x11-font-utils.x86_64 1:7.5-20.el7 will be installed --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font -utils-7.5-20.el7.x86_64 --> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-u tils-7.5-20.el7.x86_64 --> Running transaction check ---> Package libXfont.x86_64 0:1.5.2-1.el7 will be installed ---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: ghostscript x86_64 9.07-28.el7_4.2 base 4.3 M Installing for dependencies: ghostscript-fonts noarch 5.50-32.el7 base 324 k libXfont x86_64 1.5.2-1.el7 base 152 k libfontenc x86_64 1.1.3-3.el7 base 31 k urw-fonts noarch 2.4-16.el7 base 3.0 M xorg-x11-font-utils x86_64 1:7.5-20.el7 base 87 k Transaction Summary ================================================================================ Install 1 Package (+5 Dependent packages) Total download size: 7.9 M Installed size: 22 M Downloading packages: (1/6): ghostscript-fonts-5.50-32.el7.noarch.rpm | 324 kB 00:00 (2/6): libXfont-1.5.2-1.el7.x86_64.rpm | 152 kB 00:00 (3/6): libfontenc-1.1.3-3.el7.x86_64.rpm | 31 kB 00:00 (4/6): ghostscript-9.07-28.el7_4.2.x86_64.rpm | 4.3 MB 00:00 (5/6): urw-fonts-2.4-16.el7.noarch.rpm | 3.0 MB 00:00 (6/6): xorg-x11-font-utils-7.5-20.el7.x86_64.rpm | 87 kB 00:00 -------------------------------------------------------------------------------- Total 20 MB/s | 7.9 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libfontenc-1.1.3-3.el7.x86_64 1/6 Installing : libXfont-1.5.2-1.el7.x86_64 2/6 Installing : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 3/6 Installing : urw-fonts-2.4-16.el7.noarch 4/6 Installing : ghostscript-fonts-5.50-32.el7.noarch 5/6 Installing : ghostscript-9.07-28.el7_4.2.x86_64 6/6 Verifying : urw-fonts-2.4-16.el7.noarch 1/6 Verifying : ghostscript-9.07-28.el7_4.2.x86_64 2/6 Verifying : libXfont-1.5.2-1.el7.x86_64 3/6 Verifying : ghostscript-fonts-5.50-32.el7.noarch 4/6 Verifying : libfontenc-1.1.3-3.el7.x86_64 5/6 Verifying : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 6/6 Installed: ghostscript.x86_64 0:9.07-28.el7_4.2 Dependency Installed: ghostscript-fonts.noarch 0:5.50-32.el7 libXfont.x86_64 0:1.5.2-1.el7 libfontenc.x86_64 0:1.1.3-3.el7 urw-fonts.noarch 0:2.4-16.el7 xorg-x11-font-utils.x86_64 1:7.5-20.el7 Complete!
Step 4: install ImageMagick-libs
[root@tutorialspots ~]# rpm -Uvh ImageMagick-libs-7.0.8-12.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:ImageMagick-libs-7.0.8-12 ################################# [100%]
Step 5:
[root@tutorialspots ~]# rpm -Uvh ImageMagick-7.0.8-12.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:ImageMagick-7.0.8-12 ################################# [100%]
1 Comment
How to batch convert png photos to jpg or vice versa | Free Online Tutorials
(January 9, 2019 - 9:07 am)[…] Step 1: install ImageMagick How to install ImageMagick on CentOS 7 […]