<?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: Resize images with PHP script</title>
	<atom:link href="http://www.redips.net/php/resize-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/php/resize-images/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Thu, 11 Mar 2010 16:39:25 +0100</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/php/resize-images/comment-page-1/#comment-151</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sat, 21 Mar 2009 17:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=23#comment-151</guid>
		<description>Abe,
few years ago, I made a PHP interface to accept and save images to the MySQL database. Uploaded images should fit to the defined box. For example, images greater then 200x200px were decreased while smaller images were just copied. You gave me an idea so I arranged PHP function and prepared two posts:

&lt;a title=&quot;Create thumbnail with PHP and ImageMagick utilities&quot; href=&quot;/php/create-thumbnail-image-1/&quot; rel=&quot;nofollow&quot;&gt;Create thumbnail with PHP (1)&lt;/a&gt;
&lt;a title=&quot;Create thumbnail with PHP and GD module&quot; href=&quot;/php/create-thumbnail-image-2/&quot; rel=&quot;nofollow&quot;&gt;Create thumbnail with PHP (2)&lt;/a&gt;

First post uses &lt;em&gt;ImageMagick&lt;/em&gt; utilities &lt;em&gt;identify&lt;/em&gt; and &lt;em&gt;convert&lt;/em&gt; (like in this post), while second post is pure PHP without external utilities. Hmm, &quot;pure&quot; means to use GD library for image processing and this version is a little bit longer. Both functions produce the same result. Transparency of PNG and GIF images is preserved. Function accepts two parameters. First parameter is absolute path to the image, while second parameter defines box dimension. Thumbnail image is saved to the same directory as original image with the prefix &quot;tn_&quot;. Hope this will help you.</description>
		<content:encoded><![CDATA[<p>Abe,<br />
few years ago, I made a PHP interface to accept and save images to the MySQL database. Uploaded images should fit to the defined box. For example, images greater then 200x200px were decreased while smaller images were just copied. You gave me an idea so I arranged PHP function and prepared two posts:</p>
<p><a title="Create thumbnail with PHP and ImageMagick utilities" href="/php/create-thumbnail-image-1/" rel="nofollow">Create thumbnail with PHP (1)</a><br />
<a title="Create thumbnail with PHP and GD module" href="/php/create-thumbnail-image-2/" rel="nofollow">Create thumbnail with PHP (2)</a></p>
<p>First post uses <em>ImageMagick</em> utilities <em>identify</em> and <em>convert</em> (like in this post), while second post is pure PHP without external utilities. Hmm, "pure" means to use GD library for image processing and this version is a little bit longer. Both functions produce the same result. Transparency of PNG and GIF images is preserved. Function accepts two parameters. First parameter is absolute path to the image, while second parameter defines box dimension. Thumbnail image is saved to the same directory as original image with the prefix "tn_". Hope this will help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abe</title>
		<link>http://www.redips.net/php/resize-images/comment-page-1/#comment-149</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Fri, 20 Mar 2009 17:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=23#comment-149</guid>
		<description>Nice script, but I was wondering if you could help me with a little modification to it cause i need it to do something a little different.

I have user submitted pictures that get uploaded to the server each into it&#039;s members id directory. I have a admin area which lists the pictures and output a convert command for me which i then copy and paste into the server command line and recreate a thumbnail and resize for it.

I was wondering if your script could be modified to basically take in the parameters from the url and create the thumbnail and resize the image if over 450px on either width or height and place the new thumbnail the same directory as the original with a tn_ prefix on the filename.</description>
		<content:encoded><![CDATA[<p>Nice script, but I was wondering if you could help me with a little modification to it cause i need it to do something a little different.</p>
<p>I have user submitted pictures that get uploaded to the server each into it's members id directory. I have a admin area which lists the pictures and output a convert command for me which i then copy and paste into the server command line and recreate a thumbnail and resize for it.</p>
<p>I was wondering if your script could be modified to basically take in the parameters from the url and create the thumbnail and resize the image if over 450px on either width or height and place the new thumbnail the same directory as the original with a tn_ prefix on the filename.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/php/resize-images/comment-page-1/#comment-38</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Mon, 15 Dec 2008 10:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=23#comment-38</guid>
		<description>I realized that my WordPress site displays curly &#039;smart quotes&#039; - actually like every WordPress site. Smart quotes are nice, but not suitable for program code. So, I disabled smart quotes and after you click on &quot;copy to clipboard&quot; and paste to your local file, PHP script should work now. If your PHP engine has enabled &quot;notice level&quot; then starting script without any parameters (width and height) will print two notices about undefined offset - just ignore them. If you have any further questions, I will gladly help you. Bye!</description>
		<content:encoded><![CDATA[<p>I realized that my WordPress site displays curly 'smart quotes' - actually like every WordPress site. Smart quotes are nice, but not suitable for program code. So, I disabled smart quotes and after you click on "copy to clipboard" and paste to your local file, PHP script should work now. If your PHP engine has enabled "notice level" then starting script without any parameters (width and height) will print two notices about undefined offset - just ignore them. If you have any further questions, I will gladly help you. Bye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SP</title>
		<link>http://www.redips.net/php/resize-images/comment-page-1/#comment-36</link>
		<dc:creator>SP</dc:creator>
		<pubDate>Fri, 12 Dec 2008 06:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=23#comment-36</guid>
		<description>I tried using your scripts and got a parsing error on:

Line 29.
if ($w1 &lt; $h1) $g2 = $h2 .&#039;x&#039; .$w2;   
    else           $g2 = $w2 .&#039;x&#039; .$h2;   


Could you find the solution to this and post it!

Thanks in advance.

SP</description>
		<content:encoded><![CDATA[<p>I tried using your scripts and got a parsing error on:</p>
<p>Line 29.<br />
if ($w1 &lt; $h1) $g2 = $h2 .'x' .$w2;<br />
    else           $g2 = $w2 .'x' .$h2;   </p>
<p>Could you find the solution to this and post it!</p>
<p>Thanks in advance.</p>
<p>SP</p>
]]></content:encoded>
	</item>
</channel>
</rss>
