Install ImageMagick on Debian: Difference between revisions
From Leechfinger
Jump to navigationJump to search
(2 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
# git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick | # git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick | ||
# | # cd /usr/local/src/ImageMagick | ||
# ./configure | # ./configure | ||
# ./configure --with-modules | # ./configure --with-modules | ||
Line 23: | Line 23: | ||
# make -j 6 | # make -j 6 | ||
# make install | # make install | ||
# ldconfig /usr/local/lib | |||
# magick --version | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Graphics]] | [[Category:Graphics]] |
Latest revision as of 00:44, 18 May 2024
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
# magick --version