<?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: Create thumbnail with PHP (2)</title>
	<atom:link href="http://www.redips.net/php/create-thumbnail-image-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/php/create-thumbnail-image-2/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:29:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/</generator>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/php/create-thumbnail-image-2/comment-page-1/#comment-3814</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Fri, 29 Apr 2011 16:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=60#comment-3814</guid>
		<description>@k00dez - &lt;strong&gt;create_thumb()&lt;/strong&gt; function can be called from PHP code to resize image in the filesystem. For example after image is upladed to the Web server. Or you can create a small PHP code to process all images in the current directory. Imagine you have a list of big images saved from camera and you want to reduce image resolution at once. Yes it can be done with PhotoShop, GIMP, IrfanView - and some of them have scripting option to automate resizing process ... By all means, it was easier for me to write a PHP code and run it from command line.  Here are few PHP lines to resize all images in current directory:
&lt;pre class=&quot;brush:php&quot;&gt;
// read files inside current directory
$files = scandir(&#039;.&#039;);
// open loop for all fetched files in current directory 
foreach ($files as $file){
	// process only jpg files
	if (substr($file, -3) == &#039;jpg&#039;){
		// proportionally resize images to fit in 800x800 box
		create_thumb($file, 800);
	}
}
&lt;/pre&gt;

@karthi - This post is about image resizing with PHP. As I can read from your comment, input for &lt;strong&gt;ffmpeg&lt;/strong&gt; is a &quot;video file&quot; not an image. So this is not closely related to the shown PHP solution. Anyway, thank you for posting a comment, it will be surely useful. Cheers!</description>
		<content:encoded><![CDATA[<p>@k00dez - <strong>create_thumb()</strong> function can be called from PHP code to resize image in the filesystem. For example after image is upladed to the Web server. Or you can create a small PHP code to process all images in the current directory. Imagine you have a list of big images saved from camera and you want to reduce image resolution at once. Yes it can be done with PhotoShop, GIMP, IrfanView - and some of them have scripting option to automate resizing process ... By all means, it was easier for me to write a PHP code and run it from command line.  Here are few PHP lines to resize all images in current directory:</p>
<pre class="brush:php">
// read files inside current directory
$files = scandir('.');
// open loop for all fetched files in current directory
foreach ($files as $file){
	// process only jpg files
	if (substr($file, -3) == 'jpg'){
		// proportionally resize images to fit in 800x800 box
		create_thumb($file, 800);
	}
}
</pre>
<p>@karthi - This post is about image resizing with PHP. As I can read from your comment, input for <strong>ffmpeg</strong> is a "video file" not an image. So this is not closely related to the shown PHP solution. Anyway, thank you for posting a comment, it will be surely useful. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthi</title>
		<link>http://www.redips.net/php/create-thumbnail-image-2/comment-page-1/#comment-3813</link>
		<dc:creator>karthi</dc:creator>
		<pubDate>Thu, 28 Apr 2011 12:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=60#comment-3813</guid>
		<description>Hello use this

its so simple,if u have any queries mail at karthid@in.com

&lt;pre class=&quot;brush:php&quot;&gt;
$ffmpeg = &quot;ffmpeg Installed path&quot;;

$flvfile = &quot;source video file with root path&quot;;

$png_path = &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;);
&lt;/pre&gt;
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="mailto:karthid@in.com">karthid@in.com</a></p>
<pre class="brush:php">
$ffmpeg = "ffmpeg Installed path";

$flvfile = "source video file with root path";

$png_path = "Destination video file with root path and file type";

exec("$ffmpeg -y -i $flvfile -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110x90 $png_path");
</pre>
<p>all the best....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k00dez</title>
		<link>http://www.redips.net/php/create-thumbnail-image-2/comment-page-1/#comment-2170</link>
		<dc:creator>k00dez</dc:creator>
		<pubDate>Thu, 15 Jul 2010 15:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=60#comment-2170</guid>
		<description>How do I use this function?</description>
		<content:encoded><![CDATA[<p>How do I use this function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TCG</title>
		<link>http://www.redips.net/php/create-thumbnail-image-2/comment-page-1/#comment-1142</link>
		<dc:creator>TCG</dc:creator>
		<pubDate>Wed, 16 Sep 2009 19:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=60#comment-1142</guid>
		<description>Thanks, was wondering how you manage to do transparent backgrounds for a while!</description>
		<content:encoded><![CDATA[<p>Thanks, was wondering how you manage to do transparent backgrounds for a while!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web master</title>
		<link>http://www.redips.net/php/create-thumbnail-image-2/comment-page-1/#comment-364</link>
		<dc:creator>Web master</dc:creator>
		<pubDate>Sat, 27 Jun 2009 14:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=60#comment-364</guid>
		<description>one more function:
http://www.phpinform.com/2009/06/27/thumbnails-php-function-to-create-small-images/</description>
		<content:encoded><![CDATA[<p>one more function:<br />
<a href="http://www.phpinform.com/2009/06/27/thumbnails-php-function-to-create-small-images/" rel="nofollow">http://www.phpinform.com/2009/06/27/thumbnails-php-function-to-create-small-images/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

