Install ImageMagick on Debian
From Leechfinger
Install ImageMagick on Debian
Imagemagick is a very useful free and open-source image editing tool. Imagemagick can read and write images in a variety of formats like GIF, JPEG, PNG, and TIFF. We can also use ImageMagick to resize, flip, mirror, rotate, distort, and transform images, adjust image colors, and many more.
Need a compiler
We will be compiling from source, thus, we need build essentials.
# apt install make build-essential automake
Install PHP and modules
Please read Installing PHP After that enable headers.
# a2enmod headers
Download and compile
# git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick
# cd /usr/local/src/ImageMagick
# ./configure
# ./configure --with-modules
# make
# make -j 6
# make install
# ldconfig /usr/local/lib