<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ImageMagic &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/imagemagic/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Fri, 05 Feb 2021 13:07:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>ImageMagic &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Install ImageMagick on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-imagemagick-on-centos/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 29 Oct 2020 12:28:25 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2497</guid>

					<description><![CDATA[ImageMagick is a software package that is used to edit, create, or transform bitmap images. It can read and write images in various formats including DPX, EXR-2000, PDF, PNG, Postscript, SVG and TIFF. ImageMagick can be installed either through the remi repository or by compiling the source from the latest [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-pale-pink-background-color has-background"><strong><a href="https://imagemagick.org/index.php">ImageMagick</a></strong> is a software package that is used to edit, create, or transform bitmap images. It can read and write images in various formats including DPX, EXR-2000, PDF, PNG, Postscript, SVG and TIFF. ImageMagick can be installed either through the remi repository or by compiling the source from the latest stable release. The installation guide is followed by another installation guide for the ImageMagick PHP extension (imagick).</p>



<h2 id="next-step-installation-from-remi-repository" >Next Step installation from Remi Repository</h2>



<p>You can install this repository using the following command:</p>



<pre class="wp-block-code"><code>wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6*.rpm</code></pre>



<p>Next, you need to install the remi repository:</p>



<pre class="wp-block-code"><code>wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm</code></pre>



<p>An additional following step is required to enable the remi repository:</p>



<ul><li>Use your favorite text editor to open <strong>/etc/yum.repos.d/remi.repo</strong>. You need to find the remi section and <strong>enabled=0 </strong>change it to <strong>enabled=1</strong>.</li><li>Make sure the required dependencies are installed:</li></ul>



<pre class="wp-block-code"><code>yum install -y gcc php-devel php-pear</code></pre>



<ul><li>Then install ImageMagick:</li></ul>



<pre class="wp-block-code"><code>yum install -y ImageMagick ImageMagick-devel</code></pre>



<p class="has-pale-pink-background-color has-background">Optional! </p>



<p>if you plan on using ImageMagick in perl scripts:</p>



<pre class="wp-block-code"><code>yum install ImageMagick-perl</code></pre>



<p>On this steps, the installation&#8217;ll be done.</p>



<h2 id="install-from-source-code" >Install from source code</h2>



<p>First install dependencies:</p>



<pre class="wp-block-code"><code>yum -y groupinstall 'Development Tools'
yum -y install bzip2-devel freetype-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel zlib-devel ghostscript-devel djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel libX11-devel libXext-devel libXt-devel lcms-devel libxml2-devel librsvg2-devel OpenEXR-devel php-devel</code></pre>



<p>Upon successful installation, you will be provided with the dedicated source code:</p>



<pre class="wp-block-code"><code>wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd ImageMagick*</code></pre>



<p>Next, you need to compile the source code by following command</p>



<pre class="wp-block-code"><code>./configure
make
make instal</code></pre>



<p>You can check the successful compilation using the following command:</p>



<pre class="wp-block-code"><code>convert --version </code></pre>



<h2 id="install-php-extension" >Install PHP extension</h2>



<p>Install the <strong>imagick</strong> php <strong>imagick.so</strong> extension module:</p>



<pre class="wp-block-code"><code>pecl install imagick</code></pre>



<p>You will be prompted for the ImageMagick installation prefix. Press <strong>ENTER</strong> to auto detect. You can get this error after the <strong>pecl</strong> command:</p>



<pre class="wp-block-code"><code>"Error shtool at '/var/tmp/imagick/build/shtool' does not exist or is not executable. Make sure that the file exists and is executable and then rerun this script"</code></pre>



<p>This is related to the protected and mounted <strong>/tmp</strong> directory. You may have configured your <strong>/tmp</strong> folder this way as part of protecting your server. To temporarily fix this error, remove the <strong>/tmp/etc/fstab</strong> line and reboot. Run the pecl command again. When the installation is complete, you can add <strong>/etc/fstab</strong> to <strong>/tmp</strong> and reboot. Using the umount command will not work if <strong>/tmp</strong> has the<strong> nosuid, noexec, nodev</strong> options. Then add the <strong>imagick.so</strong> extension to your <strong>php.ini</strong> file. Start by looking for your <strong>php.ini</strong> file. Usually found in <strong>/etc</strong> files.</p>



<pre class="wp-block-code"><code>php -i | grep "Loaded Configuration File"</code></pre>



<p>Use a text editor to open <strong>php.ini </strong>and find the dynamic extension section. Add extension = <strong>imagick.so</strong> then save. Check the php extension list to make sure imagick is installed correctly:</p>



<pre class="wp-block-code"><code>php -m | grep imagick</code></pre>



<p>If you&#8217;re using a <strong>web server</strong> like <strong>Apache</strong>, remember to restart it:</p>



<pre class="wp-block-code"><code>service httpd restart</code></pre>



<p class="has-pale-pink-background-color has-background">Done!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
