<?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: Were do you set the maximum size for the image upload??</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Fri, 10 Sep 2010 08:36:20 +0000</pubDate>

<item>
<title>jay on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-142</link>
<pubDate>Mon, 30 Nov 2009 03:10:50 +0000</pubDate>
<dc:creator>jay</dc:creator>
<guid isPermaLink="false">142@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi Ian, thanks for the reply. When i upload a image around 1MB and above a get the following error message:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Image file not found: ../../files/img_uploads/temp/P9240061.JPG&#34;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And here is my code, what it does is generates two resized images. I'am i missing out?&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
require_once '../../core/classes/thumb/ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;$options_thumb = array('resizeUp' =&#38;gt; true, 'jpegQuality' =&#38;gt; 30);&#60;br /&#62;
$options_large = array('resizeUp' =&#38;gt; true, 'jpegQuality' =&#38;gt; 90);&#60;/p&#62;
&#60;p&#62;$filePath = '../../files/img_uploads/temp/'.$primaryImage;&#60;br /&#62;
$tmpName = $_FILES[&#34;primary_image&#34;][&#34;tmp_name&#34;];&#60;br /&#62;
			move_uploaded_file($tmpName,$filePath);&#60;/p&#62;
&#60;p&#62;$thumbDir = '../../files/img_uploads/thumbnail/';&#60;br /&#62;
$largeDir = '../../files/img_uploads/large/';&#60;br /&#62;
$random = rand(1000,9999);&#60;/p&#62;
&#60;p&#62;try{&#60;br /&#62;
$thumb = PhpThumbFactory::create($filePath, $options_thumb);&#60;br /&#62;
$large = PhpThumbFactory::create($filePath, $options_large);&#60;/p&#62;
&#60;p&#62;//Generate images&#60;br /&#62;
thumb-&#38;gt;resize(100, 100)-&#38;gt;save(&#34;$thumbDir&#34;.&#34;thumbnail_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;);&#60;br /&#62;
$large-&#38;gt;resize(480, 480)-&#38;gt;save(&#34;$largeDir&#34;.&#34;large_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;);&#60;/p&#62;
&#60;p&#62;$thumbPath = &#34;$thumbDir&#34;.&#34;thumbnail_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;;&#60;br /&#62;
$largePath = &#34;$largeDir&#34;.&#34;large_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;;&#60;/p&#62;
&#60;p&#62;//Remove original image&#60;br /&#62;
unlink($filePath);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;catch (Exception $e){&#60;br /&#62;
	echo $e-&#38;gt;getMessage();&#60;br /&#62;
	exit;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-141</link>
<pubDate>Sat, 28 Nov 2009 23:11:52 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">141@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Well, depends on how you're uploading images...  Upload file size is, however, ultimately restricted at the php.ini level, but you can do so programmatically.  Since the library doesn't have any official file upload support, that's about all I can do to help you, but there are tons of articles on file uploads in PHP out there.
&#60;/p&#62;</description>
</item>
<item>
<title>jay on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-140</link>
<pubDate>Sat, 28 Nov 2009 19:30:40 +0000</pubDate>
<dc:creator>jay</dc:creator>
<guid isPermaLink="false">140@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Were do you set the maximum size for the image upload??
&#60;/p&#62;</description>
</item>

</channel>
</rss>
