<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Different aspects of thumbnailing</title>
	<atom:link href="http://valokuva.org/?feed=rss2&#038;p=33" rel="self" type="application/rss+xml" />
	<link>http://valokuva.org/?p=33</link>
	<description>My Thoughts Exactly</description>
	<lastBuildDate>Fri, 03 Sep 2010 20:25:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Imagick blog &#187; Blog Archive &#187; Different aspects of thumbnailing</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-18916</link>
		<dc:creator>Imagick blog &#187; Blog Archive &#187; Different aspects of thumbnailing</dc:creator>
		<pubDate>Fri, 15 Jan 2010 23:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-18916</guid>
		<description>[...] a few examples of how to thumbnail an image: PLAIN TEXT [...]</description>
		<content:encoded><![CDATA[<p>[...] a few examples of how to thumbnail an image: PLAIN TEXT [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thijs Feryn</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-15393</link>
		<dc:creator>Thijs Feryn</dc:creator>
		<pubDate>Sun, 02 Aug 2009 13:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-15393</guid>
		<description>Hi Mikko

This is just what I was looking for. If finally decided to switch from GD to Imagick and creating square thumbnails wasn&#039;t quite working yet. 

I must admit there is little information available on the PHP wrapper for ImageMagick, but your blog seems to be my primary resource.

Keep up the good work!

Thijs</description>
		<content:encoded><![CDATA[<p>Hi Mikko</p>
<p>This is just what I was looking for. If finally decided to switch from GD to Imagick and creating square thumbnails wasn&#8217;t quite working yet. </p>
<p>I must admit there is little information available on the PHP wrapper for ImageMagick, but your blog seems to be my primary resource.</p>
<p>Keep up the good work!</p>
<p>Thijs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snille</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-5748</link>
		<dc:creator>Snille</dc:creator>
		<pubDate>Thu, 14 Aug 2008 15:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-5748</guid>
		<description>Ahh... Thank you... Now I just have to get Imagick to work on my Ubuntu server.... :)</description>
		<content:encoded><![CDATA[<p>Ahh&#8230; Thank you&#8230; Now I just have to get Imagick to work on my Ubuntu server&#8230;. <img src='http://valokuva.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Koppanen</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-5743</link>
		<dc:creator>Mikko Koppanen</dc:creator>
		<pubDate>Thu, 14 Aug 2008 08:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-5743</guid>
		<description>Snille,

Check Imagick-&gt;shearImage and Imagick-&gt;distortImage</description>
		<content:encoded><![CDATA[<p>Snille,</p>
<p>Check Imagick->shearImage and Imagick->distortImage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snille</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-5742</link>
		<dc:creator>Snille</dc:creator>
		<pubDate>Thu, 14 Aug 2008 08:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-5742</guid>
		<description>Hi Mikko!
Thank you for all your examples!! I&#039;ll bookmark this post! :)
I&#039;m looking for a &quot;Perspective&quot; function...
Is it possible to do with ImageMagick?
Let me explain...
Picture 1 is a normal lets say 80x80 pixels.
When the magick is done it should result in something like this:
Topleft corner: 0
Topright corner: Vertical -6px above topleft corner. Horizontal 74px.
Downleft corner: Vertical 80px from topleft, Horizontal 0px.
Downright corner: Vertical 74px from topleft, Horizontal 68px.
To make it more easy, have a look...
First picture: http://www.snille.net/pix/temp/example1.png
And perspective modified: http://www.snille.net/pix/temp/example2.png

Is this possible?</description>
		<content:encoded><![CDATA[<p>Hi Mikko!<br />
Thank you for all your examples!! I&#8217;ll bookmark this post! <img src='http://valokuva.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;m looking for a &#8220;Perspective&#8221; function&#8230;<br />
Is it possible to do with ImageMagick?<br />
Let me explain&#8230;<br />
Picture 1 is a normal lets say 80&#215;80 pixels.<br />
When the magick is done it should result in something like this:<br />
Topleft corner: 0<br />
Topright corner: Vertical -6px above topleft corner. Horizontal 74px.<br />
Downleft corner: Vertical 80px from topleft, Horizontal 0px.<br />
Downright corner: Vertical 74px from topleft, Horizontal 68px.<br />
To make it more easy, have a look&#8230;<br />
First picture: <a href="http://www.snille.net/pix/temp/example1.png" rel="nofollow" onclick="urchinTracker('/outgoing/www.snille.net/pix/temp/example1.png?referer=');">http://www.snille.net/pix/temp/example1.png</a><br />
And perspective modified: <a href="http://www.snille.net/pix/temp/example2.png" rel="nofollow" onclick="urchinTracker('/outgoing/www.snille.net/pix/temp/example2.png?referer=');">http://www.snille.net/pix/temp/example2.png</a></p>
<p>Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marhi</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-2396</link>
		<dc:creator>Marhi</dc:creator>
		<pubDate>Sun, 18 May 2008 01:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-2396</guid>
		<description>Damn! I just noticed that the solution was above my answer.
Sorry about that and great work by the way.</description>
		<content:encoded><![CDATA[<p>Damn! I just noticed that the solution was above my answer.<br />
Sorry about that and great work by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marhi</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-2395</link>
		<dc:creator>Marhi</dc:creator>
		<pubDate>Sun, 18 May 2008 01:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-2395</guid>
		<description>I just figured that if you have $im-&gt;setImageFormat(&quot;GIF&quot;) then the cropThumbnailImage does not work correcly... It gives some padding on the top and on the bottom.
JPG and PNG works fine... Is there a reason for this or just a bug?</description>
		<content:encoded><![CDATA[<p>I just figured that if you have $im-&gt;setImageFormat(&#8220;GIF&#8221;) then the cropThumbnailImage does not work correcly&#8230; It gives some padding on the top and on the bottom.<br />
JPG and PNG works fine&#8230; Is there a reason for this or just a bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Koppanen</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-2257</link>
		<dc:creator>Mikko Koppanen</dc:creator>
		<pubDate>Thu, 08 May 2008 22:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-2257</guid>
		<description>@Mit Rowe,

seems like my blog is marking your comments as spam for some reason :) sorry for the inconvenience.</description>
		<content:encoded><![CDATA[<p>@Mit Rowe,</p>
<p>seems like my blog is marking your comments as spam for some reason <img src='http://valokuva.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  sorry for the inconvenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mit Rowe</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-2253</link>
		<dc:creator>Mit Rowe</dc:creator>
		<pubDate>Thu, 08 May 2008 18:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-2253</guid>
		<description>my code went all screwy.

here&#039;s a second try.

//--

$width=166;
$height=169;

//load in the uploaded file
$uploadfile = new Imagick();
$uploadfile-&gt;readImage(&quot;original.jpg&quot;);

//resize &amp; crop
$uploadfile-&gt;cropThumbnailImage($width,$height);

//if i were to write out as a GIF at this point, iâ€™d end up with a 166 x 169 graphic on a 166 x 221 (transparent?) canvas.
//this fixes that issue
$uploadfile-&gt;setImagePage($width,$height,0,0);

//save thumbnail
$uploadfile-&gt;writeImage(&#039;temp.gif&#039;);

//clear up stuff
$uploadfile-&gt;clear();
$uploadfile-&gt;destroy();

//--</description>
		<content:encoded><![CDATA[<p>my code went all screwy.</p>
<p>here&#8217;s a second try.</p>
<p>//&#8211;</p>
<p>$width=166;<br />
$height=169;</p>
<p>//load in the uploaded file<br />
$uploadfile = new Imagick();<br />
$uploadfile-&gt;readImage(&#8220;original.jpg&#8221;);</p>
<p>//resize &amp; crop<br />
$uploadfile-&gt;cropThumbnailImage($width,$height);</p>
<p>//if i were to write out as a GIF at this point, iâ€™d end up with a 166 x 169 graphic on a 166 x 221 (transparent?) canvas.<br />
//this fixes that issue<br />
$uploadfile-&gt;setImagePage($width,$height,0,0);</p>
<p>//save thumbnail<br />
$uploadfile-&gt;writeImage(&#8216;temp.gif&#8217;);</p>
<p>//clear up stuff<br />
$uploadfile-&gt;clear();<br />
$uploadfile-&gt;destroy();</p>
<p>//&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mit Rowe</title>
		<link>http://valokuva.org/?p=33&#038;cpage=1#comment-2252</link>
		<dc:creator>Mit Rowe</dc:creator>
		<pubDate>Thu, 08 May 2008 18:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=33#comment-2252</guid>
		<description>With regards to Yudie&#039;s problem, and your solution, i experienced the same issues... the resulting image was the proper size, but it was laid on top of a canvas which was not the size i wanted.

As you suggested, setImagePage fixed it.

readImage(&quot;original.jpg&quot;); 

//resize &amp; crop
$uploadfile-&gt;cropThumbnailImage($width,$height);

//if i were to write out as a GIF at this point, i&#039;d end up with a 166 x 169 graphic on a 166 x 221 (transparent?) canvas.
//this fixes that issue
$uploadfile-&gt;setImagePage($width,$height,0,0);

//save temp resized uploaded file
$uploadfile-&gt;writeImage(&#039;thumbnail.gif&#039;);

//clear up stuff
$uploadfile-&gt;clear();
$uploadfile-&gt;destroy();
?&gt;</description>
		<content:encoded><![CDATA[<p>With regards to Yudie&#8217;s problem, and your solution, i experienced the same issues&#8230; the resulting image was the proper size, but it was laid on top of a canvas which was not the size i wanted.</p>
<p>As you suggested, setImagePage fixed it.</p>
<p>readImage(&#8220;original.jpg&#8221;); </p>
<p>//resize &amp; crop<br />
$uploadfile-&gt;cropThumbnailImage($width,$height);</p>
<p>//if i were to write out as a GIF at this point, i&#8217;d end up with a 166 x 169 graphic on a 166 x 221 (transparent?) canvas.<br />
//this fixes that issue<br />
$uploadfile-&gt;setImagePage($width,$height,0,0);</p>
<p>//save temp resized uploaded file<br />
$uploadfile-&gt;writeImage(&#8216;thumbnail.gif&#8217;);</p>
<p>//clear up stuff<br />
$uploadfile-&gt;clear();<br />
$uploadfile-&gt;destroy();<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc (user agent is rejected)
Database Caching 2/17 queries in 0.044 seconds using apc

Served from: valokuva.org @ 2010-09-10 18:44:30 -->