{"id":6083,"date":"2021-02-01T16:27:44","date_gmt":"2021-02-01T10:57:44","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6083"},"modified":"2025-10-22T11:56:15","modified_gmt":"2025-10-22T06:26:15","slug":"install-imagemagick-tool-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/install-imagemagick-tool-on-centos-7\/","title":{"rendered":"Install ImageMagick tool on CentOS 7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The ImageMagick is a free tool and it\u2019s open-source software that consists of editing, creating, and composing images. With ImageMagick, you can easily read and write the images in different formats like GIF, JPEG, PNG, and postscript.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With ImageMagick where you can resize, mirror, rotate, and transform the images.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On our\u00a0<a href=\"https:\/\/www.skynats.com\/hourly-server-support-services\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#006e9d\" class=\"has-inline-color\">server management plans<\/span><\/a>, our experts will help you to install and configure the ImageMagick tool on CentOS 7. You can check with our team at any time for\u00a0emergency support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Installing the ImageMagick.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, we need to install the following prerequisite PHP-pear, PHP-devel, and GCC package to compile the Imagick PHP extension.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Commands for installing PHP pear extension.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install php-pear<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Install the PHP-devel extension.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install php-devel<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, install the GCC extension by running the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install gcc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Installing ImageMagick use the following commands<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install ImageMagick\nyum install ImageMagick-devel<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Installing ImageMagick php extension<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you are done with ImageMagick installation then proceed with the PHP extension.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Run the following commands<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pecl install imagick\necho \"extension=imagick.so\"&gt;\/etc\/php.d\/imagick.ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the installation and Restart Apache by running the following command.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service httpd restart<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">An error occurs during the installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the errors will occur during the installation process. you may receive the following error message.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.de.leaseweb.net\n * epel: mirrors.n-ix.net\n * extras: mirror.de.leaseweb.net\n * remi: remi.schlundtech.de\n * remi-php55: remi.schlundtech.de\n * remi-php56: remi.schlundtech.de\n * remi-safe: remi.schlundtech.de\n * remi-test: remi.schlundtech.de\n * updates: mirror.de.leaseweb.net\nPackage gcc-4.8.3-9.el7.x86_64 already installed and latest version\nNo package php-devel available.\nNo package php-pear available.\nNothing to do\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following commands to resolve the error.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install php-pecl-imagick<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Permissions error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of our clients has reported such a permission error.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"ImageMagick reported an error: convert: unable to open image `files\/images\/image.jpg': Permission denied.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The following command is used to resolve the permission error.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod -R 777 images<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From this blog will get an apparent view regarding the installation of an ImageMagick and resolving the errors. For further clarification, you can contact our support team for the install or error troubleshoot.&nbsp;&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ImageMagick is a free tool and it\u2019s open-source software that consists of editing, creating, and composing images. With ImageMagick, you can easily read and write the images in different formats like GIF, JPEG, PNG, and postscript.\u00a0 With ImageMagick where you can resize, mirror, rotate, and transform the images.&nbsp; On our\u00a0server management plans, our experts [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,208,221,68],"tags":[102,222],"class_list":["post-6083","post","type-post","status-publish","format-standard","hentry","category-blog","category-centos-7","category-imagemagick","category-server-management","tag-centos7","tag-imagemagick"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6083"}],"version-history":[{"count":1,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6083\/revisions"}],"predecessor-version":[{"id":16160,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6083\/revisions\/16160"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}