<?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>LAMPdocs: Linux, Apache, MySQL, PHP &#187; Image Processing</title>
	<atom:link href="http://www.lampdocs.com/blog/category/image-processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lampdocs.com/blog</link>
	<description>Linux, Apache, MySQL, PHP: Docs, Tricks and Secrets</description>
	<lastBuildDate>Wed, 04 Jan 2012 13:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Add Imagemagick Support to PHP</title>
		<link>http://www.lampdocs.com/blog/2010/02/how-to-add-imagemagick-support-to-php/</link>
		<comments>http://www.lampdocs.com/blog/2010/02/how-to-add-imagemagick-support-to-php/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:13:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[PHP Configuration]]></category>
		<category><![CDATA[add imagemagick support]]></category>
		<category><![CDATA[imagemagick functions php]]></category>
		<category><![CDATA[php imagemagick]]></category>
		<category><![CDATA[php imagick]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=831</guid>
		<description><![CDATA[How to add imagemagick functions support to your php installation. ]]></description>
			<content:encoded><![CDATA[<p>In order to process images with php using <a href="http://php.net/manual/en/book.imagick.php">image processing functions</a>, you need to have Imagemagick support installed. Since I haven&#8217;t found any clear reference, how to do it fast, let me post my solution, it should help you to <a href="http://www.lampdocs.com/blog/tag/add-imagemagick-support/" class="st_tag internal_tag" rel="tag" title="Posts tagged with add imagemagick support">add Imagemagick support</a> to your PHP installation.</p>
<p>First of all, we need to ensure we&#8217;ve got Imagemagick on our server. Please, read my previous post, where the procedure of <a href="http://www.lampdocs.com/blog/2010/02/how-to-install-imagemagick-on-a-linux-server/">Imagemagick setup</a> is explained, if you don&#8217;t have it installed. You need to install Imagemagick first in order to add its functions in PHP, I hope it&#8217;s clear.</p>
<p>After the main library is installed, we will need another source archive, that will allow us to add Imagemagick functions to PHP. This package is called <a href="http://pecl.php.net/package/imagick">Imagick</a>, and you&#8217;re welcome to select one package you like. I&#8217;ve taken <a href="http://pecl.php.net/package/imagick/3.0.0b2">3.0.0b2</a> beta, the most recent for today.</p>
<p>Let&#8217;s download it to our server:</p>
<blockquote><p>wget http://pecl.php.net/get/imagick-3.0.0b2.tgz</p></blockquote>
<p>Extract to a folder:</p>
<blockquote><p>tar -xzvf imagick-3.0.0b2.tgz</p></blockquote>
<p>cd into this folder</p>
<blockquote><p>cd imagick-3.0.0b2;</p></blockquote>
<p>Then we need to run phpize</p>
<blockquote><p>phpize</p></blockquote>
<blockquote><p>Then our usual list of commands:<br />
./configure &#8211;with-imagick=/usr/local<br />
make<br />
make install</p></blockquote>
<p>After you&#8217;ve built imagick, you should see something like this:</p>
<p><a href="http://www.lampdocs.com/blog/wp-content/uploads/2010/02/imagick.jpg"><img class="alignnone size-medium wp-image-832" title="imagick installation" src="http://www.lampdocs.com/blog/wp-content/uploads/2010/02/imagick-300x47.jpg" alt="how to install imagick" width="300" height="47" /></a></p>
<p>Now you need to copy the created library named imagick.so to your extensions directory. However you can skip this step, if you like to deal with ling paths in your php.ini.</p>
<p>And the final stage is to add imagick module to php.ini. If you have copied the library to your extensions directory, you should add the following line to php.ini:</p>
<blockquote><p>extension=imagick.so</p></blockquote>
<p>If you have decided to keep the library at the place where it was installed, the string will look like</p>
<blockquote><p>extension=/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so</p></blockquote>
<p>Now restart Apache and check your phpinfo(). If everything is OK, you should see:</p>
<p><a href="http://www.lampdocs.com/blog/wp-content/uploads/2010/02/imagick2.jpg"><img class="alignnone size-medium wp-image-833" title="php imagemagick installed" src="http://www.lampdocs.com/blog/wp-content/uploads/2010/02/imagick2-300x285.jpg" alt="imagick ready" width="300" height="285" /></a></p>
<p>You should now be able to use Imagemagick functions. Feel free to ask me any questions you have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/02/how-to-add-imagemagick-support-to-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Imagemagick on a Linux Server</title>
		<link>http://www.lampdocs.com/blog/2010/02/how-to-install-imagemagick-on-a-linux-server/</link>
		<comments>http://www.lampdocs.com/blog/2010/02/how-to-install-imagemagick-on-a-linux-server/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 13:34:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[how to install imagemagick]]></category>
		<category><![CDATA[imagemagick compile from source]]></category>
		<category><![CDATA[imagemagick download and install]]></category>
		<category><![CDATA[imagemagick install]]></category>
		<category><![CDATA[imagemagick setup linux]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=829</guid>
		<description><![CDATA[How to compile Imagemagick from sources. Suits any Linux distribution]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re dealing with image processing, you should probably know that one of the most powerful and flexible software is <a href="http://www.imagemagick.org/">Imagemagick</a>. Here is the description from the official site:</p>
<p><a href="http://www.imagemagick.org/">ImageMagick®</a> is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.</p>
<p>The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/haXe), MagickNet (.NET), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and automagically.</p>
<p>We will compile Imagemagick from source, as it is suitable for most Linux systems. You&#8217;re welcome to find rpm packages if you like them so much, but if you compile it from source, you will be able to access most functions, that Imagemagick provides.</p>
<p>We will need to search for source files first. I have taken the most recent version <a href="http://www.imagemagick.org/script/download.php">here</a>. We will download it to our server using wget.</p>
<blockquote><p>wget http://ftp.nluug.nl/ImageMagick/ImageMagick-6.5.9-1.tar.gz</p></blockquote>
<p>Then we will extract it:</p>
<blockquote><p>tar -zxvf ImageMagick-6.5.9-1.tar.gz</p></blockquote>
<p>And will perform our usual compilation operations</p>
<blockquote><p>./configure</p></blockquote>
<p>Then (this step has taken about 5-6 minutes.</p>
<blockquote><p>make</p></blockquote>
<p>And finally</p>
<blockquote><p>make install</p></blockquote>
<p>Now your Imagemagick should be ready. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2010/02/how-to-install-imagemagick-on-a-linux-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

