<?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>hihn.org &#187; ImageMagick</title>
	<atom:link href="http://hihn.org/tag/imagemagick/feed/" rel="self" type="application/rss+xml" />
	<link>http://hihn.org</link>
	<description></description>
	<lastBuildDate>Mon, 05 Mar 2012 19:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thumbnails mit PHP &amp; ImageMagick erstellen</title>
		<link>http://hihn.org/2008/10/thumbnails-mit-php-imagemagick-erstellen/</link>
		<comments>http://hihn.org/2008/10/thumbnails-mit-php-imagemagick-erstellen/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 11:07:20 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[thumbnail]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=202</guid>
		<description><![CDATA[Mit PHP (php5-gd) Thumbnails zu erzeugen war für mich immer ein Gefrickel ohne Ende. Mit ImageMagick geht das allerdings ganz leicht. Mittels shell_exec() und &#8220;convert&#8221; lassen sich einfach Thumbnails erzeugen: // erzeugt ein Thumbnail mit 200 Pixel Breit $ convert -thumbnail 200 foo.png thumb.foo.png // erzeugt ein Thumbnail mit 200 Pixel Höhe $ convert -thumbnail [...]]]></description>
			<content:encoded><![CDATA[<p>Mit PHP (php5-gd) Thumbnails zu erzeugen war für mich immer ein Gefrickel ohne Ende. Mit ImageMagick geht das allerdings ganz leicht.<br />
Mittels shell_exec() und &#8220;convert&#8221; lassen sich einfach Thumbnails erzeugen:</p>
<pre>
// erzeugt ein Thumbnail mit 200 Pixel Breit
$ convert -thumbnail 200 foo.png thumb.foo.png

// erzeugt ein Thumbnail mit 200 Pixel Höhe
$ convert -thumbnail x200 foo.png thumb.foo.png
</pre>
<p>Beispiel:</p>
<pre>
    /*
     * creates the thumbnail
     * "foo_small.png" with
     * 200px height
     */

    $image = "foo.png";
    $thumb = "foo_small.png";

    $cmd   = "convert -thumbnail x200 ".$image." ".$thumb;
    shell_exec($cmd);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/10/thumbnails-mit-php-imagemagick-erstellen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

