{"id":23346,"date":"2023-12-31T19:16:07","date_gmt":"2023-12-31T19:16:07","guid":{"rendered":"https:\/\/linuxways.net\/?p=23346"},"modified":"2023-12-31T19:17:54","modified_gmt":"2023-12-31T19:17:54","slug":"install-use-imagemagick-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/install-use-imagemagick-on-debian-12\/","title":{"rendered":"How To install and Use ImageMagick on Debian 12"},"content":{"rendered":"<p>For Linux distributions like Debian 12, there are a number of image editing software available, and one of them is ImageMagick, which is preferred by many as it is free to use and comes with several editing options. Editing the images using ImageMagick on Debian can be done either using its GUI or using the command line interface, which is another plus. To install ImageMagick on Debian 12 there are different ways that will be discussed in the guide along with some commands for editing images.<\/p>\n<h3><strong>Outline: <\/strong><\/h3>\n<ul>\n<li><a href=\"#post-23346-hjctim1pff4k\"><strong>Installing ImageMagick<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-2srkiru6ot11\"><strong>Through Apt<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-2srkiru6ot11\"><strong>Through AppImage<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-5zt2f94xukip\"><strong>Through Tar file<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-7hhoz7yfnedz\"><strong>Through Git<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-bclnjhpwutjv\"><strong>Using ImageMagick<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-jh2i1p8sx20m\"><strong>Removing ImageMagick<\/strong><\/a><\/li>\n<li><a href=\"#post-23346-wvkh9n7w05l1\"><strong>Conclusion <\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-23346-hjctim1pff4k\"><\/a><strong>How to Install ImageMagick on Debian 12<\/strong><\/h2>\n<p>Most editing software requires a huge space and a large amount of resources to work smoothly, but the ImageMagick is lightweight and does not require a lot of resources to function properly. This makes it quite suitable for Linux distributions, although this tool can only perform basic editing functions like image, resizing, changing colors, or cropping any image. To install ImageMagick on Debian 12 here are some ways for it:<\/p>\n<h2><a id=\"post-23346-c1qensasxe9o\"><\/a><strong>Method 1: Through Default Package Manager <\/strong><\/h2>\n<p>Every Linux distribution has its default package manager which has almost all the application packages listed in it. So, in the case of Debian 12 apt is its default package manager so to install ImageMagick on it execute the:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> imagemagick <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"290\" class=\"wp-image-23354\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-1.png 805w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-1-300x108.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-1-768x277.png 768w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/p>\n<p>Once the application is installed it is better to update the packages list and afterward verify the version installed, so in the case of installing ImageMagick check its version by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">identify <span class=\"re5\">-version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"246\" class=\"wp-image-23357\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-2.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-2-300x92.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-2-768x236.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p><strong>Note: <\/strong>ImageMagick might be pre-installed on Debian 12 so it is better to check whether it is installed or not either through version check or by listing all the applications installed through the default package manager.<\/p>\n<h2><a id=\"post-23346-2srkiru6ot11\"><\/a><strong>Method 2: Through AppImage <\/strong><\/h2>\n<p>If you are looking of plug and play version of ImageMagick then the best way for it is to get its app image file which can be either downloaded manually from their official website or by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>imagemagick.org<span class=\"sy0\">\/<\/span>archive<span class=\"sy0\">\/<\/span>binaries<span class=\"sy0\">\/<\/span>magick<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"380\" class=\"wp-image-23363\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-3.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-3-300x143.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-3-768x367.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>Once the file is downloaded, make it executable and for that allow it to run as a program for that use the chmod command, and don&#8217;t forget to switch to the directory when the file is saved:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">chmod<\/span> u+x magick<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"226\" class=\"wp-image-23370\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-4.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-4-300x85.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-4-768x218.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>Now to check if the file is executing correctly run it using the help flag which will display the syntax for the commands to use ImageMagick:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>magick <span class=\"re5\">-help<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"247\" class=\"wp-image-23381\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-5.png 797w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-5-300x93.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-5-768x238.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/p>\n<p>Here I am running the command in the same directory where the file is placed but if you are in another directory then you have to specify the path for the file.<\/p>\n<h2><a id=\"post-23346-5zt2f94xukip\"><\/a><strong>Method 3: Through Tar File <\/strong><\/h2>\n<p>If you are looking for the latest version of ImageMagick then it is best to look for the source file which is available on its official page. The benefit of having the lattes version is that it has fewer bugs and access to new features, here are some steps for installing ImageMagick on Debian 12 through is tar file:<\/p>\n<h3><strong>Step 1: Download and Extract the Tar File <\/strong><\/h3>\n<p>There are two ways to download the tar file, one is by visiting the official ImageMagick archives page where you will find packages for different Linux distributions:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"385\" class=\"wp-image-23394\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-6.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-6-300x106.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-6-1024x361.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-6-768x271.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<p>The other way is that you can use the terminal to download the compressed file in tar.gz format using the wget command like this:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>imagemagick.org<span class=\"sy0\">\/<\/span>archive<span class=\"sy0\">\/<\/span>ImageMagick-7.1.1-<span class=\"nu0\">23<\/span>.tar.gz<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"411\" class=\"wp-image-23405\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-7.png 797w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-7-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-7-768x396.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/p>\n<p>Once the file is downloaded extract it using the tar command along with the xvzf flags which unzip the file, list its contents, decompress the unzipped file, and specify the file name same as the compressed file name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">tar<\/span> xvzf ImageMagick-7.1.1-<span class=\"nu0\">23<\/span>.tar.gz<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"261\" class=\"wp-image-23413\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-8.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-8-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-8-768x254.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<h3><strong>Step 2: Configure and Build the Application<\/strong><\/h3>\n<p>Once the file is extracted, execute the configure file in it which will look for the dependencies required to install and run ImageMagick on Debian 12. In short, it is a script file responsible for bullying the file necessary for installation:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">.<span class=\"sy0\">\/<\/span>configure<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"242\" class=\"wp-image-23424\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-9.png 819w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-9-300x89.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-9-768x227.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<p>Don&#8217;t forget to switch to the folder of the extracted file.<\/p>\n<p>Now as a result of configuration a Makefile temperate is created based on Debian 12 and to create a make file of ImageMagick execute the make command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">make<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"314\" class=\"wp-image-23437\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-10.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-10-300x117.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-10-768x301.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<h3><strong>Step 3: Install ImageMagick<\/strong><\/h3>\n<p>Once the make file for ImageMagick is created just install ImageMagick on Debian 12 using the install command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> <span class=\"kw2\">install<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"266\" class=\"wp-image-23449\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-11.png 803w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-11-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-11-768x254.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<h3><strong>Step 4: Run the Dynamic Linker and Verify the Installation<\/strong><\/h3>\n<p>The ImageMagick may need to access some libraries during execution so to avoid any occurrence of error during this it is better to execute the dynamic linker so that it can access libraries:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> ldconfig <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>local<span class=\"sy0\">\/<\/span>lib<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"208\" class=\"wp-image-23459\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-12.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-12-300x78.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-12-768x200.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p>Now to verify the installation by checking the version of ImageMagick installed on Debian12:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">magick <span class=\"re5\">-version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"247\" class=\"wp-image-23466\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-13.png 789w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-13-300x94.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-13-768x240.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/p>\n<h2><a id=\"post-23346-7hhoz7yfnedz\"><\/a><strong>Method 4: Through Git Repository<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>Another way to install ImageMagick is by using the git repository, and for that git should be installed on Debian 12 and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"kw2\">git<\/span><\/div><\/div>\n<p>To that, just clone the repository of ImageMagick using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">git clone<\/span> https:<span class=\"sy0\">\/\/<\/span>github.com<span class=\"sy0\">\/<\/span>ImageMagick<span class=\"sy0\">\/<\/span>ImageMagick.git<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"285\" class=\"wp-image-23471\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-14.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-14-300x107.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-14-768x273.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<p>After cloning the repository in Debian 12 install some necessary dependencies and libraries for ImageMagick by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> build-essential libltdl-dev libjpeg-dev libpng-dev libtiff-dev libgif-dev libfreetype6-dev liblcms2-dev libxml2-dev<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"319\" class=\"wp-image-23477\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-15.png 804w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-15-300x119.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-15-768x305.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/p>\n<p>The next steps are the same for both the installation and removal of the ImageMagick<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> .<span class=\"sy0\">\/<\/span>configure<br \/>\n<br \/>\n<span class=\"kw2\">sudo<\/span> .<span class=\"sy0\">\/<\/span>configure <span class=\"re5\">--with-modules<\/span><br \/>\n<br \/>\n<span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span><br \/>\n<br \/>\n<span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> <span class=\"kw2\">install<\/span><br \/>\n<br \/>\n<span class=\"kw2\">sudo<\/span> ldconfig <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>local<span class=\"sy0\">\/<\/span>lib<br \/>\n<br \/>\nmagick <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><strong><br \/>\n<strong>Note: <\/strong><\/strong>The only difference between this method and the previous one is that in the previous method, we use the tar file from the official website and in this method, the source code from the git repository is used.<\/p>\n<h2><a id=\"post-23346-bclnjhpwutjv\"><\/a><strong>How To Use ImageMagick on Debian 12 <\/strong><\/h2>\n<p>ImageMagick can be used either through the command line interface or by its graphical user interface(GUI) but mostly the CLI is preferred as it is quite easy to use this way. So here are some basic editing you can do through ImageMagick<\/p>\n<h3><strong>Converting an Image Format from PNG to JPG Using ImageMagick on Debian 12 <\/strong><\/h3>\n<p>To convert an image format from one to another, just use the convert command, and here is its syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert <span class=\"sy0\">&lt;<\/span>Image-name-with-format<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">&lt;<\/span>converted-image-name-with-desired-format<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Now just for illustration, I have converted an image having a PNG format into a JPG format using the above given syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert input.png output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"277\" class=\"wp-image-23484\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-16.png 800w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-16-300x104.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-16-768x266.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>If you are using the app image file then just go to its respective directory or give a path for it, and execute it along with using the convert command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> .<span class=\"sy0\">\/<\/span>magick convert image.png image.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"266\" class=\"wp-image-23489\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-17.png 782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-17-300x102.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-17-768x261.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<h3><strong>Editing an Image in Debian 12 Using ImageMagick<\/strong><\/h3>\n<p>There are various basic editing options that one gets on ImageMagick like cropping, resizing, rotating, and blurring the image. To simply open up the image in Debian 12 using ImageMagick use the display command along with the image name and format and don\u2019t forget to give the path for the image if you are in any other directory:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">display image.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"520\" class=\"wp-image-23503\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-18.png 793w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-18-300x197.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-18-768x504.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/p>\n<h3><strong>Rotating an Image<\/strong><\/h3>\n<p>To rotate an image on Debian 12 using ImageMagick, just use the rotate flag along with the angle of rotation like this:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-rotate<\/span> <span class=\"st0\">&quot;75&quot;<\/span> output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"526\" class=\"wp-image-23511\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-19.png 782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-19-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-19-768x517.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<h3><strong>Blurring an Image <\/strong><\/h3>\n<p>If you want to blur an image to a certain extent, then use the blur flag along with the radius and standard deviation of the Gaussian blur filter:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"re5\">-blur<\/span> <span class=\"br0\">&#123;<\/span>radius<span class=\"br0\">&#125;<\/span>x<span class=\"br0\">&#123;<\/span>sigma<span class=\"br0\">&#125;<\/span><\/div><\/div>\n<p>Now for illustration, I have blurred an image and zero here means that the radius of the blur filter is zero, so ImageMagick will adjust to a suitable radius automatically in correspondence to the standard deviation(8):<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-blur<\/span> 0x8 output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"538\" class=\"wp-image-23516\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-20.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-20-300x206.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-20-768x527.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<h3><strong>Cropping an Image<\/strong><\/h3>\n<p>To cut an image using ImageMagick on Debian 12 just specify the size of length and width to cut along with the full size of the image using the crop flag:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-crop<\/span> <span class=\"sy0\">&lt;<\/span>image-size<span class=\"sy0\">&gt;<\/span>+<span class=\"sy0\">&lt;<\/span>length-to-be-cropped<span class=\"sy0\">&gt;<\/span>+<span class=\"sy0\">&lt;<\/span>width-to-be-cropped<span class=\"sy0\">&gt;<\/span> output.jpg<\/div><\/div>\n<p>Now for illustration, I have an image for size 2880 by 1800, and I have cropped 400 from its length and width:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-crop<\/span> 2880x1800+<span class=\"nu0\">400<\/span>+<span class=\"nu0\">400<\/span> output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"809\" height=\"559\" class=\"wp-image-23521\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-21.png 809w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-21-300x207.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-21-768x531.png 768w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/p>\n<h3><strong>Resizing an Image<\/strong><\/h3>\n<p>To make the large image smaller without cutting out the image, the resizing option can be used, simply use the resize flag with the percentage of resize required as in the syntax below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert <span class=\"sy0\">&lt;<\/span>image-file<span class=\"sy0\">&gt;<\/span> <span class=\"re5\">-resize<\/span> <span class=\"sy0\">&lt;<\/span>percentage-resize<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">&lt;<\/span>output-image-file-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>For example, I have resized the image to 50 percent using the above syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-resize<\/span> <span class=\"nu0\">50<\/span><span class=\"sy0\">%<\/span> output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"270\" class=\"wp-image-23522\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-22.png 811w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-22-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-22-768x256.png 768w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/p>\n<p>Another way to resize the image is by specifying the size the size of image you want and below is the syntax if the required size is less than the original size:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert <span class=\"sy0\">&lt;<\/span>image-file-name<span class=\"sy0\">&gt;<\/span> <span class=\"re5\">-resize<\/span> <span class=\"sy0\">&lt;<\/span>image-size-to-be-reduced<span class=\"sy0\">&gt;<\/span>\\<span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">&lt;<\/span>output-image-file-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>If you want to enlarge the image then it means that the size required will be more than the original size so for that use the below syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert <span class=\"sy0\">&lt;<\/span>image-file-name<span class=\"sy0\">&gt;<\/span> <span class=\"re5\">-resize<\/span> <span class=\"sy0\">&lt;<\/span>image-size-to-be-reduced<span class=\"sy0\">&gt;<\/span>\\<span class=\"sy0\">&lt;<\/span> <span class=\"sy0\">&lt;<\/span>output-image-file-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Now here, for instance I have resized the image to a lower value:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">convert image.jpg <span class=\"re5\">-resize<\/span> 500x300\\<span class=\"sy0\">&gt;<\/span> output.jpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"255\" class=\"wp-image-23523\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-23.png 803w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-23-300x95.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-23-768x244.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<p><strong>Note: <\/strong>To use ImageMagick through its GUI on Debian 12 just open up the image and click on it anywhere to access its GUI, from there you can access all of its options.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"495\" class=\"wp-image-23525\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-24.png 895w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-24-300x166.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-24-768x425.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/p>\n<h2><a id=\"post-23346-jh2i1p8sx20m\"><\/a><strong>How to Remove ImageMagick From Debian 12 <\/strong><\/h2>\n<p>Since every installation method is different from the other the method to remove ImageMagick from Debian primarily depends on the installation method and I have explained the removal method for each of them:<\/p>\n<h3><strong>Removing ImageMagick Installed Through Apt<\/strong><\/h3>\n<p>For removing the ImageMagick if installed through the default package manager it is preferred to use the autoremove flag as it removes the unused dependencies by itself so execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove <span class=\"re5\">--autoremove<\/span> imagemagick-<span class=\"nu0\">6<\/span>-common <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"300\" class=\"wp-image-23527\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-25.png 823w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-25-300x109.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-25-768x280.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/p>\n<p>Once you have uninstalled it, you can verify it by listing all the applications installed using the apt package manager and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt list <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"349\" class=\"wp-image-23528\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-26.png 820w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-26-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-26-768x327.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/p>\n<h3><strong>Remove ImageMagick Installed Through Tar File<\/strong><\/h3>\n<p>Since installing ImageMagick through the tar file a Makefile is created, so in a similar way to remove or uninstall ImageMagick just use the uninstall command in the same directory where the make file is present:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">make<\/span> uninstall<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"226\" class=\"wp-image-23530\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-27.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-27.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-27-300x86.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-27-768x221.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>Now to completely remove ImageMagick, remove its directory using the remove command along with the r flag which is used when there is any data in the respective directory:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"re5\">-r<\/span> ImageMagick-7.1.1-<span class=\"nu0\">23<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"255\" class=\"wp-image-23531\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-28.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-28.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-28-300x97.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-28-768x248.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<h3><strong>Remove ImageMagick AppImage <\/strong><\/h3>\n<p>Once you no longer require the use of ImageMagick, simply remove the file by using the rm command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> magick<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"255\" class=\"wp-image-23533\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-29.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-29.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-29-300x95.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/12\/word-image-23346-29-768x244.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<h2><a id=\"post-23346-wvkh9n7w05l1\"><\/a><strong>Conclusion <\/strong><\/h2>\n<p>ImageMagick is a free-to-use tool for editing images and can be installed on Debian 12 in four ways. These methods include using its default package manager, its AppImage file, and its source file either through GitHub or through its official website. Moreover, this tool can be used from both the command line interface and its GUI.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>ImageMagick can be installed using its default package manager, its AppImage file, and its source file either through GitHub or through its official website.<\/p>","protected":false},"author":110,"featured_media":23541,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-23346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23346"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23346\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23541"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}