<?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 this ?</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Thu, 09 Sep 2010 04:41:28 +0000</pubDate>

<item>
<title>Ian on "How do I do this ?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-this#post-76</link>
<pubDate>Mon, 03 Aug 2009 08:20:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">76@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Glad you sorted everything out, and thanks for you compliments :)
&#60;/p&#62;</description>
</item>
<item>
<title>enatom on "How do I do this ?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-this#post-75</link>
<pubDate>Mon, 03 Aug 2009 07:53:39 +0000</pubDate>
<dc:creator>enatom</dc:creator>
<guid isPermaLink="false">75@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;DO NOT WORRY!&#60;/p&#62;
&#60;p&#62;I sorted it out, I just didn't think it was this easy.&#60;/p&#62;
&#60;p&#62;basically I just didnt understand out how it worked, and now found out that, you have to first upload the actuall image, Then use the class to identify the uploaded image, and then make a thumbnail of it.&#60;/p&#62;
&#60;p&#62;So firs tyou have you put all your if statements and let it upload, and using that, you make a thumbnail out of it when it exists on the server.&#60;/p&#62;
&#60;p&#62;Thanks alot to the maker of this script.&#60;/p&#62;
&#60;p&#62;My greatest of gratitudes to you!
&#60;/p&#62;</description>
</item>
<item>
<title>enatom on "How do I do this ?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-this#post-74</link>
<pubDate>Mon, 03 Aug 2009 05:10:10 +0000</pubDate>
<dc:creator>enatom</dc:creator>
<guid isPermaLink="false">74@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;This is what I have so for, and the image is not uploading or being saved in the director:-&#60;br /&#62;
&#60;code&#62;$aut = $_SESSION['authenticated'];&#60;br /&#62;
$uid = $_SESSION['uid'];&#60;/p&#62;
&#60;p&#62;//phpThumb settings&#60;/p&#62;
&#60;p&#62;$options = array('resizeUp' =&#38;gt; true, 'jpegQuality' =&#38;gt; 80);&#60;/p&#62;
&#60;p&#62;if (!empty($uid) &#38;#38;&#38;#38; $aut == 1) {&#60;br /&#62;
	if (!empty($submit)) {&#60;br /&#62;
		if (isset ($_FILES['userfile'])){&#60;/p&#62;
&#60;p&#62;			$thumb = PhpThumbFactory::create('../../upload/post/new.jpg');&#60;br /&#62;
			$thumb-&#38;gt;resize(100, 100)-&#38;gt;save('../../upload/post/mthumb/new.jpg'); &#60;/p&#62;
&#60;p&#62;		}else{ echo &#34;no file was selected&#34;;}&#60;br /&#62;
	}else{echo &#34;&#38;lt;form name=\&#34;myForm\&#34; action=\&#34;post.php\&#34; method=\&#34;post\&#34; enctype=\&#34;multipart/form-data\&#34; /&#38;gt;&#38;lt;input name=\&#34;userfile\&#34; type=\&#34;file\&#34; size=\&#34;40\&#34; /&#38;gt;&#38;lt;INPUT type=\&#34;submit\&#34; name=\&#34;mysubmit\&#34; value=\&#34;Click!\&#34;&#38;gt;&#38;lt;/form&#38;gt;&#34;;}&#60;br /&#62;
}else{echo &#34;please login to post&#34;;}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I just dont understand how this works, and there isnt any tutorial teaching you how to create an image upload, and thumbnail creation with PhpThumb.&#60;/p&#62;
&#60;p&#62;please help
&#60;/p&#62;</description>
</item>
<item>
<title>enatom on "How do I do this ?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-do-this#post-73</link>
<pubDate>Mon, 03 Aug 2009 03:43:21 +0000</pubDate>
<dc:creator>enatom</dc:creator>
<guid isPermaLink="false">73@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;I need to let a user upload an image on my &#60;code&#62;/upload/post/&#60;/code&#62; directory. There must be a restriction on the images to upload, at 1mb and no bigger than 2000px X 2000px.&#60;/p&#62;
&#60;p&#62;but I also need a thumbnail created on my &#60;code&#62;/upload/post/mthumb&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;All thumbs must have a width of 300, but with the height being relative to the width, and keep to its aspect ration (not losing proportion) .. Also at the best quality.&#60;/p&#62;
&#60;p&#62;How do I do this. Now I've only learnt PHP in the past 2 weeks, BUT I know OOP, functions, vars, MySQL, and PHP basics. I also have VisualBasic experience. So its just this kind of stuff that im not to confident with.&#60;/p&#62;
&#60;p&#62;I hope you can help me.&#60;/p&#62;
&#60;p&#62;My file structure is like this:-&#60;/p&#62;
&#60;p&#62;&#60;code&#62;/ core&#60;/p&#62;
&#60;p&#62;/ post&#60;br /&#62;
--&#124; avatar&#60;br /&#62;
--&#124; post&#60;br /&#62;
----&#124; mthumb &#38;lt;---- where the thumbs should be saved&#60;/p&#62;
&#60;p&#62;/ inc&#60;br /&#62;
--&#124; phpthumb &#38;lt;---- installation folder&#60;/p&#62;
&#60;p&#62;/ template&#60;br /&#62;
--&#124; default &#38;lt;---- my pages are to upload, resize and show&#60;/code&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
