Its time to install the compiled code: sudo make install.Compile the configured code, now: sudo make.If you want to compile ImageMagick along with modules, then use this command: sudo.Start Configuring packages to compile them cd /usr/local/src/ImageMagick sudo.Install the tools we need to compile code on Linux.Well, if you want to install the latest ImageMagick using its source code on Debian then follow the given steps: Clone Imagick Repository: sudo apt install git -y sudo git clone /usr/local/src/ImageMagick Install Development tools: Build latest ImageMagick from Source on Debian To know more about it you can visit the official web page of ImageMagick. The separate documentation can be found at /usr/share/doc/imagemagick-doc/index.html There is a man page for each command-line program. stream – Reads out parts of image files and outputs them as raw data, floating-point numbers, or the like.mogrify– like Convert, only that the input file is replaced by the output file!.montage – combines several images into one large single image. identify – outputs the file format, image size, etc.display – displays images on an X server.conjure – Runs scripts in ImageMagick’s scripting language.composite – superimposes several images to form one image.compare – compares 2 images and outputs the differences as an image file.convert – reads images, processes them, and saves them.animate – plays several pictures in quick succession.Well, if you want to use this graphic program natively on your system, then ImageMagick offers 11 command-line programs, all of which access a common set of libraries, which in turn enable the writing and reading of many different files formats and extensive graphic work. sudo nano /etc/php/ 7.4/apache2/php.iniĪdd the following under Dynamic extension: extension=imagick sudo systemctl restart php 7.4-fpm Here it is 7.4, replace that with what you have currently on your system. Note- replace version without your current version in the given command. Enable Php Imagick extension for Apache & Nginx To confirm ImageMagick has been installed successfully on our system, run the command to confirm it: convert -versionĥ. x, hence we can install it also using the APT package manager command that is: sudo apt install php-imagickįor PHP 8.0 version: Add PHP 8.0 Ondrej repo sudo wget -O /etc/apt//php.gpg sudo apt install apt-transport-https lsb-release ca-certificates sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt//php.list' Run system update sudo apt update Install ImageMagick PHP extension for the 8.0 version sudo apt install php8.0-imagick To verify php -m | grep imagick For setting up Imagick PHP extension on Debian 11 For PHP 7.0 version:īy default the PHP version is available on Debian 11 in the base repo is 7. sudo apt install imagemagick imagemagick-docģ. Hence, just use the APT package manager command to install it. It is because they are already present in the base repository of Debian. Now we don’t need to add any other repository to get the packages of ImageMagick to install on Debian 11. Install ImageMagick on Debian 11 Bullseye Lets’ first run the update command to refresh the repository cache as well as to install any update, if available. Install Development tools: Install PHP ImageMagick (IMAGICK) on Debian 11 Bullseye 1. These allow programmers to integrate the functionality of ImageMagick into their programs. Special editing features are only available as command-line tools and are therefore somewhat more complicated to use.Īnother important part of ImageMagick is the libraries for various programming languages. Even new users can easily understand and get along with the software. ImageMagick itself provides the user interface for the most important basic functions. To use its functionality in PHP-based applications, the user has to install the Imagick PHP extension. ImageMagick can handle over 100 image formats. Apart from that other functions such as cropping, enlarging, and reducing the photos are also there. Using it various images can be converted, compared, or overlapped. ImageMagick is a free tool distributed under an open-source license. Tutorial to learn the simple commands for installing ImageMagick on Debian 11 Bullseye server along with PHP-Imagick module to use for various web-based applications such as WordPress.
0 Comments
Leave a Reply. |