Skip to content

Instantly share code, notes, and snippets.

@nickferrando
Last active May 9, 2020 13:03
Show Gist options
  • Save nickferrando/c6e5a45c14e1a3f61c151f6f1f894719 to your computer and use it in GitHub Desktop.
Save nickferrando/c6e5a45c14e1a3f61c151f6f1f894719 to your computer and use it in GitHub Desktop.
Install ImageMagick on Ubuntu 18.04 LTS
#Install ImageMagick on Ubuntu 18.04 LTS
sudo apt update
sudo apt upgrade -y
sudo reboot
sudo apt --purge autoremove
#Install Build-Essential in order to configure and make the final Install
sudo apt-get install build-essential
#LibwebP 1.1.0
wget http://downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz
#LibPng
sudo apt-get install libpng-dev
#Zlib
sudo apt-get install zlib1g-dev
#Uncompress
tar xvzf libwebp-1.1.0.tar.gz
#Configure LibWebP
./configure --prefix=/usr \
--enable-libwebpmux \
--enable-libwebpdemux \
--enable-libwebpdecoder \
--enable-libwebpextras \
--enable-swap-16bit-csp \
--disable-static &&
make
#Install LibWebP
sudo make install
#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
#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 and make sure to disable the "shared" option
./configure --disable-shared
#Make
sudo make
#Install
sudo make install
#Final Check
sudo make check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment