How to install ImageMagick in Direct Admin
ImageMagick is an excellent collection of free, open-source, cross-platform libraries, and binaries. ImageMagick is used to work with raster graphics and vector graphics with many features for displaying, converting, modifying, and editing. This program can work with more than 200 different image formats. The program can be used through the command line interface (CLI) or programs written by its libraries in other languages. In this article, we are going to teach you how to install ImageMagick Direct Admin.
How to install ImageMagick in Direct Admin
Imagick or ImageMagick is an open-source software developed in 1987 by John Christie. He provided such a tool to create, edit or convert bitmap images.
Today, this feature covers more than 200 image formats that can do great things. Interestingly, to edit images in WordPress you need an image optimization library in PHP, Imagick will do the same for you.
What does ImageMagick do?
ImageMagick is a tool for creating, editing, or converting bitmap images. ImageMagick users can read or save images in various image formats including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.
With this program, you can resize, flip, mirror, rotate, distort, crop, and transform images, adjust image color, apply various special effects, draw text, and lines, and draw polygons and ellipses 0. This software can also use editing tools to convert a photo that does not have the desired quality into a clear photo.
Other uses of this software include the ability to convert images from one format to another. For example PNG to JPEG. ImageMagick saves images in DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, and SVG formats.
Creating a GIF animation sequence from a group of images is another use of this program. Inserting descriptive or artistic text into the image, color management with accurate color profiles, and easy access to pixels outside the image range are some of the things that ImageMagick can do.
In the next part, we will teach you how to install ImageMagick in Direct Admin.
Install ImageMagick Direct Admin
To install ImageMagick on Directadmin, just follow the steps below. In the first step, you must execute the following commands:
yum install ImageMagick
After executing the above commands, now you need to execute the following 8 commands in order:
cd /usr/local/src
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxf imagick-3.0.1.tgz
cd imagick-3.0.1
phpize
./configure
make
make install
Note that the extension is displayed at the end of the installation path. You should add this path to the php.ini file and the extension_dir field. Like the following command:
extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20060613”
Then you need to add the following code to the end of the server php.ini file:
extension=imagick.so
Finally, restart the Apache service:
service httpd restart
Conclusion
ImageMagick is an open source library that allows users to resize images, crop photos, and make custom changes to images.
This library is supported by popular programming languages such as C++, PHP, Python, Ruby, Perl, etc. In this article, we tried to teach you how to install ImageMagick Direct Admin. Good luck!