<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>PHP Thumb Topic: How do I do multiple thumbs</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 12:08:43 +0000</pubDate>

<item>
<title>enatom on "How do I do multiple thumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-multiple-thumbs#post-84</link>
<pubDate>Wed, 12 Aug 2009 16:41:59 +0000</pubDate>
<dc:creator>enatom</dc:creator>
<guid isPermaLink="false">84@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;cant i do this in the same file instead of another and use Get?
&#60;/p&#62;</description>
</item>
<item>
<title>mayid on "How do I do multiple thumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-multiple-thumbs#post-83</link>
<pubDate>Wed, 12 Aug 2009 06:36:18 +0000</pubDate>
<dc:creator>mayid</dc:creator>
<guid isPermaLink="false">83@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Read documentation. Basically, you need a php file to process each thumb. It should look like this one:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
require_once 'miniaturas/ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;$fileName = (isset($_GET['filename'])) ? urldecode($_GET['filename']) : null;&#60;/p&#62;
&#60;p&#62;if ($fileName === null &#124;&#124; !file_exists($fileName))&#60;br /&#62;
{&#60;br /&#62;
     // handle missing images however you want... perhaps show a default image??  Up to you...&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;try&#60;br /&#62;
{&#60;br /&#62;
     $thumb = PhpThumbFactory::create($fileName);&#60;br /&#62;
}&#60;br /&#62;
catch (Exception $e)&#60;br /&#62;
{&#60;br /&#62;
     // handle error here however you'd like&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;$thumb-&#38;gt;adaptiveResize(90, 90);&#60;/p&#62;
&#60;p&#62;$thumb-&#38;gt;show();&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Then, you call images this way:&#60;br /&#62;
&#38;lt;img src=&#34;thumbs_maker.php?filename='.$path.'&#34; class=&#34;thumb&#34; alt=&#34;&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;Each &#38;lt;img&#38;gt; call will return you a thumb.
&#60;/p&#62;</description>
</item>
<item>
<title>enatom on "How do I do multiple thumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-multiple-thumbs#post-81</link>
<pubDate>Mon, 10 Aug 2009 14:58:09 +0000</pubDate>
<dc:creator>enatom</dc:creator>
<guid isPermaLink="false">81@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;How can I make multiple resizes of an uploaded image?&#60;/p&#62;
&#60;p&#62;what is the code like for making the multiple resizes of one uploaded image.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

