Install ImageMagick on Debian: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
Qais (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
== Install PHP and modules ==
== Install PHP and modules ==
Please read [[:Installing PHP]]
Please read [[:Installing PHP]]
After that enable headers.
<syntaxhighlight lang="bash" line>
# 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
# ldconfig /usr/local/lib
# magick --version
</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