Devops, Ubuntu

Install Imagemagick with WEBP on Ubuntu

Somehow standard imagemagick on Ubuntu does compiled with `WEBP` support, There’s a bug report with “wishlist” level on Ubuntu about it here

So we need to compile it on our own, this is what I do on my Ubuntu machine

First: When you are planning to compile things on your own – you need to install the build-essential

sudo apt-get install build-essential

And then install plethora of dependencies that may be needed by imagemagick

sudo apt-get build-dep imagemagick -y

Download latest imagick and extract it

tar xf ImageMagick.tar.gz 

Download latest libwebp and extract it

tar xf libwebp-0.4.3.tar.gz

Download dependencies for libwebp

sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev

Compile libwebp

cd libwebp-0.4.3
./configure --prefix=/usr
sudo make install

Compile imagemagick! (note: you may want to change the version number to the latest imagemagick)

cd ImageMagick-6.9.2-0/
./configure --prefix=/usr
sudo make install

Aaaand done!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s