<?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 Topics</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 11:50:15 +0000</pubDate>

<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>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>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>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>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>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>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>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>

