-
-
Save GregNing/766ba361f00e29d5c3635e7e4bf57f03 to your computer and use it in GitHub Desktop.
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)
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
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates. | |
sudo apt-get update | |
#Install Build-Essential in order to configure and make the final Install | |
sudo apt-get install build-essential | |
#libjpg62-dev required in order to work with basic JPG files | |
sudo apt-get install -y libjpeg62-dev | |
#libtiff-dev is required in order to work with TIFF file format | |
sudo apt-get install -y libtiff-dev | |
#libheif-dev is required in order to work with HEIC file format | |
sudo apt install -y libheif-dev | |
sudo git clone https://github.com/strukturag/libde265.git | |
cd libde265/ | |
sudo ./autogen.sh | |
sudo ./configure | |
sudo make –j4 | |
sudo make install | |
#libwebp-dev is required in order to work with WEBP file format | |
sudo apt install -y libwebp-dev | |
#libpng-dev required in order to work with basic PNG files | |
sudo apt-get install -y libpng-dev | |
#Download ImageMagick | |
wget https://www.imagemagick.org/download/ImageMagick.tar.gz | |
#Untar Imagemagick | |
tar xvzf ImageMagick.tar.gz | |
#Access the working directory | |
cd ImageMagick/[version_number] | |
#Configure the installation | |
./configure \ | |
--with-bzlib=yes \ | |
--with-djvu=yes \ | |
--with-fftw=yes \ | |
--with-fontconfig=yes \ | |
--with-freetype=yes \ | |
--with-gslib=yes \ | |
--with-gvc=yes \ | |
--with-heic=yes \ | |
--with-jbig=yes \ | |
--with-jemalloc=yes \ | |
--with-jpeg=yes \ | |
--with-lcms=yes \ | |
--with-lqr=yes \ | |
--with-lzma=yes \ | |
--with-magick-plus-plus=yes \ | |
--with-openexr=yes \ | |
--with-openjp2=yes \ | |
--with-pango=yes \ | |
--with-perl=yes \ | |
--with-png=yes \ | |
--with-raqm=yes \ | |
--with-raw=yes \ | |
--with-rsvg=yes \ | |
--with-tcmalloc=yes \ | |
--with-tiff=yes \ | |
--with-webp=yes \ | |
--with-wmf=yes \ | |
--with-x=yes \ | |
--with-xml=yes \ | |
--with-zip=yes \ | |
--with-zlib=yes \ | |
--with-zstd=yes | |
#Make | |
sudo make | |
#Install | |
sudo make install | |
#Final Check | |
sudo make check | |
sudo ldconfig /usr/local/lib | |
# check ImageMagick | |
identify --version |
if you upgrade Ubuntu 18.04 to 20.04, will have this issue LoadError: libffi.so.6: cannot open shared object file
use solve problem
sudo ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6
FYI libffi-so-6-cannot-open-shared-object-file-no-such-file-or-direct
e: unable to locate package libnginx-mod-http-passenger
sudo apt-get update
sudo apt-get install -y libnginx-mod-http-passenger
or
nginx log permission error can't access
sudo rm -rf /var/log/nginx
sudo mkdir /var/log/nginx
sudo touch /var/log/nginx/error.log
sudo chown -R www-data:www-data /var/log/nginx
sudo systemctl restart nginx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
pkg-config libheif --modversion
check version for heic