<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Create Image Thumbnails Using&#160;PHP</title> <atom:link href="http://davidwalsh.name/create-image-thumbnail-php/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/create-image-thumbnail-php</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: RedHot</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-32050</link> <dc:creator>RedHot</dc:creator> <pubDate>Sun, 06 May 2012 06:23:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-32050</guid> <description>I suggest you add the following code after :
$desired_height = floor($height*($desired_width/$width));and the code is :
/* make sure that dimensions width related to height are within range and vice versa */
if(($desired_height &gt; 10* $desired_width) or ($desired_width &gt; 10* $desired_height)){
return false;
}otherwise if the dimensions are not logically proportional  you will get the error saying :
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in ....</description> <content:encoded><![CDATA[<p>I suggest you add the following code after :<br
/> $desired_height = floor($height*($desired_width/$width));</p><p>and the code is :<br
/> /* make sure that dimensions width related to height are within range and vice versa */<br
/> if(($desired_height &gt; 10* $desired_width) or ($desired_width &gt; 10* $desired_height)){<br
/> return false;<br
/> }</p><p>otherwise if the dimensions are not logically proportional  you will get the error saying :<br
/> Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in &#8230;.</p> ]]></content:encoded> </item> <item><title>By: hieu</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-31593</link> <dc:creator>hieu</dc:creator> <pubDate>Fri, 13 Apr 2012 01:20:39 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-31593</guid> <description>I dont think we can create thumbnail with php.</description> <content:encoded><![CDATA[<p>I dont think we can create thumbnail with php.</p> ]]></content:encoded> </item> <item><title>By: tryu</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-27873</link> <dc:creator>tryu</dc:creator> <pubDate>Fri, 09 Dec 2011 17:28:57 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-27873</guid> <description>drthyutjuygfjityf</description> <content:encoded><![CDATA[<p>drthyutjuygfjityf</p> ]]></content:encoded> </item> <item><title>By: Maaz</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-27846</link> <dc:creator>Maaz</dc:creator> <pubDate>Wed, 07 Dec 2011 03:55:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-27846</guid> <description>But this code is only for jpeg. How to handle other image types ?</description> <content:encoded><![CDATA[<p>But this code is only for jpeg. How to handle other image types ?</p> ]]></content:encoded> </item> <item><title>By: Wayne Smallman</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-27609</link> <dc:creator>Wayne Smallman</dc:creator> <pubDate>Wed, 16 Nov 2011 15:42:58 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-27609</guid> <description>Hi guys!No matter what I do, the image is garbled and I can&#039;t decode it either. Any ideas?</description> <content:encoded><![CDATA[<p>Hi guys!</p><p>No matter what I do, the image is garbled and I can&#8217;t decode it either. Any ideas?</p> ]]></content:encoded> </item> <item><title>By: JND</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-26274</link> <dc:creator>JND</dc:creator> <pubDate>Thu, 28 Jul 2011 12:06:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-26274</guid> <description>Where do you specify quality in this code?</description> <content:encoded><![CDATA[<p>Where do you specify quality in this code?</p> ]]></content:encoded> </item> <item><title>By: Didier</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-23799</link> <dc:creator>Didier</dc:creator> <pubDate>Thu, 28 Apr 2011 14:41:01 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-23799</guid> <description>Do you think it is possible to create a thumbnail of a web page with PHP ?(for your info, actually I use a kind of C++ langage and ActiveX to create thumbnails of web pages, then send the thumbnails by FTP on the server and finally read them on the server with mootools/PHP ... nothing very brilliant today)</description> <content:encoded><![CDATA[<p>Do you think it is possible to create a thumbnail of a web page with PHP ?</p><p>(for your info, actually I use a kind of C++ langage and ActiveX to create thumbnails of web pages, then send the thumbnails by FTP on the server and finally read them on the server with mootools/PHP &#8230; nothing very brilliant today)</p> ]]></content:encoded> </item> <item><title>By: karthi</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-23797</link> <dc:creator>karthi</dc:creator> <pubDate>Thu, 28 Apr 2011 12:48:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-23797</guid> <description>Hello use thisits so simple,if u have any queries mail at &#107;arth&#105;&#100;&#064;i&#110;.com$ffmpeg = &quot;ffmpeg Installed path&quot;$flvfile = &quot;source video file with root path&quot;$png_path &quot; &quot;Destination video file with root path and file type&quot;exec(&quot;$ffmpeg -y -i $flvfile -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110x90 $png_path&quot;);all the best....</description> <content:encoded><![CDATA[<p>Hello use this</p><p>its so simple,if u have any queries mail at <a
href="mailt&#111;&#58;karth&#105;d&#64;in.&#99;&#111;m">&#107;&#97;rth&#105;d&#64;i&#110;.c&#111;m</a></p><p>$ffmpeg = &#8220;ffmpeg Installed path&#8221;</p><p>$flvfile = &#8220;source video file with root path&#8221;</p><p>$png_path &#8221; &#8220;Destination video file with root path and file type&#8221;</p><p>exec(&#8220;$ffmpeg -y -i $flvfile -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110&#215;90 $png_path&#8221;);</p><p>all the best&#8230;.</p> ]]></content:encoded> </item> <item><title>By: crivion</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-22864</link> <dc:creator>crivion</dc:creator> <pubDate>Sat, 26 Feb 2011 05:36:19 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-22864</guid> <description>a solution to improve would be to either give a 4th param for the image type or auto-detect like gif,jpg,png</description> <content:encoded><![CDATA[<p>a solution to improve would be to either give a 4th param for the image type or auto-detect like gif,jpg,png</p> ]]></content:encoded> </item> <item><title>By: Didier</title><link>http://davidwalsh.name/create-image-thumbnail-php#comment-22278</link> <dc:creator>Didier</dc:creator> <pubDate>Tue, 11 Jan 2011 08:48:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=415#comment-22278</guid> <description>And if you want to create thumbnails from a collection of urls ?</description> <content:encoded><![CDATA[<p>And if you want to create thumbnails from a collection of urls ?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/7 queries in 0.005 seconds using disk: basic
Object Caching 804/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 03:18:02 -->
