Forked from moneytoo/gist:8c95cc39fd4fd9a18858eb15e379d2f5
Created
June 10, 2021 21:05
-
-
Save gdm/a093872fda5348ccb66de254f2ec4047 to your computer and use it in GitHub Desktop.
ImageMagick 6.7.8 with WebP (libwebp) support on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y install bzip2-devel libtiff-devel giflib-devel ghostscript-devel libwmf-devel jasper-devel libtool-ltdl-devel libXext-devel libXt-devel librsvg2-devel OpenEXR-devel libwebp-devel | |
rpm -ivh http://vault.centos.org/centos/7/updates/Source/SPackages/ImageMagick-6.7.8.9-15.el7_2.src.rpm | |
sed -i '/BuildRequires:\tghostscript-devel/a BuildRequires:\tlibwebp-devel' /root/rpmbuild/SPECS/ImageMagick.spec | |
sed -i '/Requires: pkgconfig/a Requires: libwebp' /root/rpmbuild/SPECS/ImageMagick.spec | |
rpmbuild -ba /root/rpmbuild/SPECS/ImageMagick.spec | |
# actual install | |
rpm -Uvh --force /root/rpmbuild/RPMS/x86_64/ImageMagick-6.7.8.9-15.el7.centos.x86_64.rpm | |
# if you to disable updates from CentOS repository | |
yum-config-manager --save --setopt=updates.exclude=ImageMagick*; | |
# verify WebP support via: | |
identify -list format |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment