<?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: Forum: Help &#038; Bugs - Recent Posts</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 11:25:45 +0000</pubDate>

<item>
<title>myth on "phpthumb- line 213 error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/phpthumb-line-213-error#post-184</link>
<pubDate>Thu, 28 Jul 2011 17:45:40 +0000</pubDate>
<dc:creator>myth</dc:creator>
<guid isPermaLink="false">184@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;so I placed an echo inside the TRY block and it didn't print it; it prints only outside the TRY block; the paths are correct.. what am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>myth on "phpthumb- line 213 error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/phpthumb-line-213-error#post-183</link>
<pubDate>Thu, 28 Jul 2011 17:35:21 +0000</pubDate>
<dc:creator>myth</dc:creator>
<guid isPermaLink="false">183@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;hello.. I getting this error and i don't know why..&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Warning: opendir(C:\xampp\htdocs\thumb\com/thumb_plugins) [function.opendir]: failed to open dir: No such file or directory in C:\xampp\htdocs\thumb\com\PhpThumb.inc.php on line 213&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;this is my main php&#60;br /&#62;
&#60;code&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;require_once '/com/ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;try&#60;br /&#62;
{&#60;br /&#62;
     $thumb = PhpThumbFactory::create('/image/img7.jpg');&#60;br /&#62;
     $thumb-&#38;gt;adaptiveResize(60, 60);&#60;br /&#62;
     $thumb-&#38;gt;save('/thumb/img7.jpg');&#60;br /&#62;
}&#60;br /&#62;
catch (Exception $e)&#60;br /&#62;
{&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and i'm using xampp with php 5.2 and GD2 (activated); I also saw a similar topic with the same issue but the op said that even if he got this error, the code worked for him,but it doesn't work for me.. any ideas? :&#124;
&#60;/p&#62;</description>
</item>
<item>
<title>ravisoni6262 on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-180</link>
<pubDate>Sat, 18 Jun 2011 01:25:23 +0000</pubDate>
<dc:creator>ravisoni6262</dc:creator>
<guid isPermaLink="false">180@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;thanks rumeau you have suggested great idea!
&#60;/p&#62;</description>
</item>
<item>
<title>Ben on "makethumbs.php only executes a few actions per pageload."</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/makethumbsphp-only-executes-few-records-at-a-time-of-large-directory#post-176</link>
<pubDate>Tue, 22 Mar 2011 12:38:12 +0000</pubDate>
<dc:creator>Ben</dc:creator>
<guid isPermaLink="false">176@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;When I have a large directory of images to process, makethumbs only does about 15 actions per pageload. When I refresh the page, it continues right where it left off. I would like to be able to process ALL the images at once instead of refreshing makethumbs repeatedly until the directory is done.  &#60;/p&#62;
&#60;p&#62;PLEASE HELP!&#60;br /&#62;
Pure Rookie
&#60;/p&#62;</description>
</item>
<item>
<title>rumeau on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-167</link>
<pubDate>Thu, 30 Dec 2010 20:19:55 +0000</pubDate>
<dc:creator>rumeau</dc:creator>
<guid isPermaLink="false">167@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hey i´ve been using this library a few times before and always had to create new instances of the class to create multiple thumbnails.&#60;/p&#62;
&#60;p&#62;I see that this post has a year already are you considering adding a reset method to the class?&#60;/p&#62;
&#60;p&#62;if not could you advise on how to create a patch to do this. im not very skill with this to do it on my own, but i could manage to get it right if you give me some advices on where should i start.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>leafy34 on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-149</link>
<pubDate>Wed, 13 Jan 2010 22:23:56 +0000</pubDate>
<dc:creator>leafy34</dc:creator>
<guid isPermaLink="false">149@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;It might be worth mentioning that an incorrect path/to/image, I have found atleast, is the cause of this error.
&#60;/p&#62;</description>
</item>
<item>
<title>darkfenix90 on "php thumb and cake php"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/php-thumb-and-cake-php#post-127</link>
<pubDate>Thu, 22 Oct 2009 03:44:31 +0000</pubDate>
<dc:creator>darkfenix90</dc:creator>
<guid isPermaLink="false">127@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi, is there a way I can use php thumb with the framework cakephp? Are there some examples? Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-122</link>
<pubDate>Thu, 08 Oct 2009 22:38:14 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">122@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;good deal, glad you got squared away
&#60;/p&#62;</description>
</item>
<item>
<title>infowire on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-121</link>
<pubDate>Thu, 08 Oct 2009 19:49:13 +0000</pubDate>
<dc:creator>infowire</dc:creator>
<guid isPermaLink="false">121@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;fixed after new build of apache.
&#60;/p&#62;</description>
</item>
<item>
<title>infowire on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-120</link>
<pubDate>Thu, 08 Oct 2009 19:21:13 +0000</pubDate>
<dc:creator>infowire</dc:creator>
<guid isPermaLink="false">120@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;im updating Apache and made sure gd is checked its recompiling now hopefully that solves the prob.
&#60;/p&#62;</description>
</item>
<item>
<title>infowire on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-119</link>
<pubDate>Thu, 08 Oct 2009 18:36:51 +0000</pubDate>
<dc:creator>infowire</dc:creator>
<guid isPermaLink="false">119@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I get is  &#60;/p&#62;
&#60;p&#62;You must have either the GD or iMagick extension loaded to use this library&#60;/p&#62;
&#60;p&#62; and i have GD installed.... my php info says i do.
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-118</link>
<pubDate>Thu, 08 Oct 2009 08:09:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">118@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Well, you're burying exceptions, so the first thing I'd do is put something in the catch block... could be as simple as:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
echo $e-&#38;gt;getMessage();&#60;br /&#62;
exit;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Give that a shot and post the error message you're getting (if any) and we'll take it from there :)
&#60;/p&#62;</description>
</item>
<item>
<title>infowire on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-117</link>
<pubDate>Thu, 08 Oct 2009 04:01:24 +0000</pubDate>
<dc:creator>infowire</dc:creator>
<guid isPermaLink="false">117@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Oops i mixed up in the previous post, the New Server is supposed to be the old server and old the new.&#60;/p&#62;
&#60;p&#62;Here is a link to the old server showing that crop works:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://66.90.103.163/~millen/crop.php?pic=sunrooms/photo/11.jpg&#34;&#62;http://66.90.103.163/~millen/crop.php?pic=sunrooms/photo/11.jpg&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>infowire on "Fatal error Call to a member function adaptiveResize() on a non-object"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/fatal-error-call-to-a-member-function-adaptiveresize-on-a-non-object#post-116</link>
<pubDate>Thu, 08 Oct 2009 03:58:02 +0000</pubDate>
<dc:creator>infowire</dc:creator>
<guid isPermaLink="false">116@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I moved my servers from a DDS to a VDS... same OS and everything.  And for some reason cropping does not work now. I get an error:&#60;/p&#62;
&#60;p&#62;&#34;Fatal error: Call to a member function adaptiveResize() on a non-object in /home/millen/public_html/crop.php on line 18&#34;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.millenniumsunrooms.com/crop.php?pic=sunrooms/photo/11.jpg&#34;&#62;http://www.millenniumsunrooms.com/crop.php?pic=sunrooms/photo/11.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;crop.php looks like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;br /&#62;
$pic = $_GET['pic'];&#60;/p&#62;
&#60;p&#62;require_once 'ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;try&#60;br /&#62;
{&#60;br /&#62;
     $thumb = PhpThumbFactory::create($pic);&#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(238, 232);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I copied all the files over exactly the way they were.&#60;/p&#62;
&#60;p&#62;New Server: &#60;a href=&#34;http://66.90.103.163/~millen/info.php&#34;&#62;http://66.90.103.163/~millen/info.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Old Server: &#60;a href=&#34;http://66.90.104.118/~falcon/info.php&#34;&#62;http://66.90.104.118/~falcon/info.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It is supposed to re-size this picture:&#60;br /&#62;
&#60;a href=&#34;http://www.millenniumsunrooms.com/sunrooms/photo/11.jpg&#34;&#62;http://www.millenniumsunrooms.com/sunrooms/photo/11.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62; Where is the problem ?? &#60;/p&#62;
&#60;p&#62; Thank You In Advance
&#60;/p&#62;</description>
</item>
<item>
<title>d1uluv2h8 on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-103</link>
<pubDate>Wed, 16 Sep 2009 01:35:53 +0000</pubDate>
<dc:creator>d1uluv2h8</dc:creator>
<guid isPermaLink="false">103@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;A reset function would be great, i also have a situation where i have to resize an image twice to get two thumbs with different dimensions.&#60;/p&#62;
&#60;p&#62;Should I file an enhancement ticket? :)
&#60;/p&#62;</description>
</item>
<item>
<title>qd1 on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-71</link>
<pubDate>Fri, 31 Jul 2009 05:57:37 +0000</pubDate>
<dc:creator>qd1</dc:creator>
<guid isPermaLink="false">71@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;hi!&#60;br /&#62;
It doesn't matter wether one uses &#60;code&#62;adaptiveResize&#60;/code&#62; or just &#60;code&#62;resize&#60;/code&#62;&#60;br /&#62;
code below behaves the same way first post describes&#60;br /&#62;
&#60;code&#62;$thumb = PhpThumbFactory::create($save_path.'originals/'.$file_name);&#60;br /&#62;
	$thum_thumbnail =   $thumb-&#38;gt;resize(100, 100)-&#38;gt;save($save_path.'thumbnails/'.'thumb_'.$file_name);&#60;br /&#62;
	$thumb_preview  =  $thumb-&#38;gt;resize(400, 400)-&#38;gt;save($save_path.'preview/'.'prev_'.$file_name); &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;so that may be a bug
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Memory fatal error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/memory-fatal-error#post-68</link>
<pubDate>Tue, 28 Jul 2009 12:22:47 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">68@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You can't really do much about fatal errors as far as catching them goes unfortunately.
&#60;/p&#62;</description>
</item>
<item>
<title>ykarmi on "Memory fatal error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/memory-fatal-error#post-67</link>
<pubDate>Tue, 28 Jul 2009 02:18:20 +0000</pubDate>
<dc:creator>ykarmi</dc:creator>
<guid isPermaLink="false">67@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;thank you! that solved the problem.&#60;/p&#62;
&#60;p&#62;EDIT: is there a way to catch a memory error?&#60;br /&#62;
something similar to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
try{&#60;br /&#62;
  $image = PhpThumbFactory::create($image_path);&#60;br /&#62;
}catch (Exception $e){&#60;br /&#62;
  echo &#34;Problem&#34;;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;but for the actual resize (this is where it fails).&#60;/p&#62;
&#60;p&#62;this does not work:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;try{&#60;br /&#62;
  $image-&#38;gt;adaptiveResize(196, 196);&#60;br /&#62;
}catch (Exception $e){&#60;br /&#62;
  echo &#34;Problem with resize&#34;;&#60;br /&#62;
}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Memory fatal error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/memory-fatal-error#post-66</link>
<pubDate>Sun, 26 Jul 2009 09:02:09 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">66@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Basically, you need to increase the memory limit in your php.ini file... take a look in there for a directive called &#34;memory_limit&#34;.&#60;/p&#62;
&#60;p&#62;The thing with manipulating images is that the amount of memory needed depends on more than just the image size on disk... once all those pixels are loaded in memory things get much larger :)
&#60;/p&#62;</description>
</item>
<item>
<title>ykarmi on "Memory fatal error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/memory-fatal-error#post-65</link>
<pubDate>Sun, 26 Jul 2009 03:32:54 +0000</pubDate>
<dc:creator>ykarmi</dc:creator>
<guid isPermaLink="false">65@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I have the following code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$image = PhpThumbFactory::create($image_path);&#60;br /&#62;
$image-&#38;gt;adaptiveResize(200, 200);&#60;br /&#62;
$image-&#38;gt;save($image_path);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;When I try to resize a JPG with a size of 580KB and dimensions 2560 X 1600, I get the following error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 10240 bytes)...&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Tried it with a smaller image (both in size and dimensions) and there's no problem. The image is less than 8MB (8388608 bytes) - what's going on and how do I fix it?&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-63</link>
<pubDate>Wed, 22 Jul 2009 10:11:10 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">63@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Well, since adaptive resizing is somewhat destructive I would recommend re-initializing the class for the best results.  However, you should be able to get away with perfectly acceptable results by saving $thmb_fend first and then $thmb_panel.&#60;/p&#62;
&#60;p&#62;I also suppose that I could add a &#34;reset&#34; kind of function that would restore the original image so you could do something like:&#60;br /&#62;
&#60;code&#62;$thmb_fend = $image-&#38;gt;reset()-&#38;gt;adaptiveResize(237, 180)-&#38;gt;save($destino.&#34;/fend.jpg&#34;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If this is a good alternative, I'll add it to the roadmap for the next release.
&#60;/p&#62;</description>
</item>
<item>
<title>maniac on "save multiple thumbnails"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/save-multiple-thumbnails#post-62</link>
<pubDate>Wed, 22 Jul 2009 03:52:47 +0000</pubDate>
<dc:creator>maniac</dc:creator>
<guid isPermaLink="false">62@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi, I want to save multiple thumbnails from each image with several sizes:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
$image = PhpThumbFactory::create($image);&#60;br /&#62;
$thmb_panel = $image-&#38;gt;adaptiveResize(79,79)-&#38;gt;save($destino.&#34;/thmb.jpg&#34;);&#60;br /&#62;
$thmb_fend = $image-&#38;gt;adaptiveResize(237, 180)-&#38;gt;save($destino.&#34;/fend.jpg&#34;);&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The problem is $thmb_fend saves with 79x79px like $thmb_panel.&#60;/p&#62;
&#60;p&#62;Any suggestions?&#60;br /&#62;
Thanks for the great class :)
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "dimension problem on vertical images"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/dimension-problem-on-vertical-images#post-29</link>
<pubDate>Thu, 18 Jun 2009 20:44:02 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">29@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;probably a rounding issue somewhere in the code... Can you file a bug over at: &#60;a href=&#34;http://trac.gxdlabs.com/projects/phpthumb/newticket&#34; rel=&#34;nofollow&#34;&#62;http://trac.gxdlabs.com/projects/phpthumb/newticket&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That way you'll be able to track any progress on the issue :)
&#60;/p&#62;</description>
</item>
<item>
<title>roxx on "dimension problem on vertical images"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/dimension-problem-on-vertical-images#post-28</link>
<pubDate>Thu, 18 Jun 2009 13:19:25 +0000</pubDate>
<dc:creator>roxx</dc:creator>
<guid isPermaLink="false">28@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;When i use the following code in my example, the new dimension of the output image is 59*60. I don't know if it is a bug but this is happening only when height is more than the width of the images.&#60;/p&#62;
&#60;p&#62;$thumb-&#38;gt;adaptiveResize(60, 60) -&#38;gt; save('photos/test.jpg');
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "No Thumb Creation, Script Echoes '1'"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/no-thumb-creation-script-echoes-1#post-9</link>
<pubDate>Mon, 15 Jun 2009 18:51:48 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">9@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Glad you got it sorted, sorry I didn't get back to you sooner :)
&#60;/p&#62;</description>
</item>
<item>
<title>fangonk on "No Thumb Creation, Script Echoes '1'"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/no-thumb-creation-script-echoes-1#post-8</link>
<pubDate>Mon, 15 Jun 2009 01:56:10 +0000</pubDate>
<dc:creator>fangonk</dc:creator>
<guid isPermaLink="false">8@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Wait Sorry I got it! For Future reference, my solution looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
require_once &#38;#39;ThumbLib.inc.php&#38;#39;;
error_reporting(E_ALL);
$dor = $_GET[&#38;#39;session_name&#38;#39;];

    if (!empty($_FILES)) {
        $tempFile = $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;tmp_name&#38;#39;];
        $targetPath = $_SERVER[&#38;#39;DOCUMENT_ROOT&#38;#39;] . $_GET[&#38;#39;folder&#38;#39;] . &#38;#39;/&#38;#39;;
        $targetPath =  str_replace(&#38;#39;//&#38;#39;,&#38;#39;/&#38;#39;,$targetPath);
        $targetFile =  $targetPath . $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;];
        move_uploaded_file($tempFile,$targetFile);
    }

$thumb = PhpThumbFactory::create($targetFile);

$thumb-&#38;gt;adaptiveResize(130, 80);

$thumb-&#38;gt;save(&#38;#39;files/Thumbs/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);

$thumb-&#38;gt;show();

$simp = simplexml_load_file($dor);
$node = $simp-&#38;gt;addChild(&#38;#39;pic&#38;#39;);
$node-&#38;gt;addChild(&#38;#39;image&#38;#39;, &#38;#39;files/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$node-&#38;gt;addChild(&#38;#39;thumb&#38;#39;, &#38;#39;files/Thumbs/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$s = simplexml_import_dom($simp);
$s-&#38;gt;saveXML($dor);

echo &#38;#39;1&#38;#39;;

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks anyway!
&#60;/p&#62;</description>
</item>
<item>
<title>fangonk on "No Thumb Creation, Script Echoes '1'"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/no-thumb-creation-script-echoes-1#post-7</link>
<pubDate>Mon, 15 Jun 2009 01:44:48 +0000</pubDate>
<dc:creator>fangonk</dc:creator>
<guid isPermaLink="false">7@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Im trying to integrate PHP Thumb with an flash uploader known as 'Uploadify'. Uploadify allows users to upload many different images at once. The problem I am having is that PHPThumb is not creating an thumbnails. When I run the php upload script directly, it returns '1'. I have all of the PHPThumb library files in the same directory with my upload script:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
require_once &#38;#39;ThumbLib.inc.php&#38;#39;;
error_reporting(E_ALL);
$dor = $_GET[&#38;#39;session_name&#38;#39;];

    if (!empty($_FILES)) {
        $tempFile = $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;tmp_name&#38;#39;];
        $targetPath = $_SERVER[&#38;#39;DOCUMENT_ROOT&#38;#39;] . $_GET[&#38;#39;folder&#38;#39;] . &#38;#39;/&#38;#39;;
        $targetPath =  str_replace(&#38;#39;//&#38;#39;,&#38;#39;/&#38;#39;,$targetPath);
        $targetFile =  $targetPath . $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;];
        move_uploaded_file($tempFile,$targetFile);
    }

echo &#38;#39;1&#38;#39;;

$thumb = PhpThumbFactory::create($_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$thumb-&#38;gt;cropFromCenter(130, 80);
$thumb-&#38;gt;save(&#38;#39;files/Thumbs/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);

$simp = simplexml_load_file($dor);
$node = $simp-&#38;gt;addChild(&#38;#39;pic&#38;#39;);
$node-&#38;gt;addChild(&#38;#39;image&#38;#39;, &#38;#39;files/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$node-&#38;gt;addChild(&#38;#39;thumb&#38;#39;, &#38;#39;files/Thumbs/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$s = simplexml_import_dom($simp);
$s-&#38;gt;saveXML($dor);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have tried using the same code to edit the static sample image and I get the same problem:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
require_once &#38;#39;ThumbLib.inc.php&#38;#39;;
error_reporting(E_ALL);
$dor = $_GET[&#38;#39;session_name&#38;#39;];

    if (!empty($_FILES)) {
        $tempFile = $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;tmp_name&#38;#39;];
        $targetPath = $_SERVER[&#38;#39;DOCUMENT_ROOT&#38;#39;] . $_GET[&#38;#39;folder&#38;#39;] . &#38;#39;/&#38;#39;;
        $targetPath =  str_replace(&#38;#39;//&#38;#39;,&#38;#39;/&#38;#39;,$targetPath);
        $targetFile =  $targetPath . $_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;];
        move_uploaded_file($tempFile,$targetFile);
    }

echo &#38;#39;1&#38;#39;;

$thumb = PhpThumbFactory::create(&#38;#39;test.jpg&#38;#39;);
$thumb-&#38;gt;cropFromCenter(200, 100);

$simp = simplexml_load_file($dor);
$node = $simp-&#38;gt;addChild(&#38;#39;pic&#38;#39;);
$node-&#38;gt;addChild(&#38;#39;image&#38;#39;, &#38;#39;files/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$node-&#38;gt;addChild(&#38;#39;thumb&#38;#39;, &#38;#39;files/Thumbs/&#38;#39;.$_FILES[&#38;#39;Filedata&#38;#39;][&#38;#39;name&#38;#39;]);
$s = simplexml_import_dom($simp);
$s-&#38;gt;saveXML($dor);

$thumb-&#38;gt;show();

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The situation is a little peculiar as I am copying all of the uploaded file names to an XML file using the simpleXML parser. Thats why I have some session variables running around in the background. I don't think this is part of the problem, but I thought I would explain the last part of my code.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

