Install ImageMagick on Debian: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
Qais (talk | contribs)
Line 13: Line 13:
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>
# a2enmod headers
# a2enmod headers
</syntaxhighlight>
== Download and compile ==
<syntaxhighlight lang="bash" line>
# 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
</syntaxhighlight>
</syntaxhighlight>
[[Category:Graphics]]
[[Category:Graphics]]

Revision as of 23:56, 17 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