<?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 - Recent Posts</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Sat, 04 Feb 2012 23:19:20 +0000</pubDate>

<item>
<title>lausianne on "phpThumb.demo.gallery.php - "failed to open""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/phpthumbdemogalleryphp-failed-to-open#post-897</link>
<pubDate>Thu, 19 Jan 2012 03:55:45 +0000</pubDate>
<dc:creator>lausianne</dc:creator>
<guid isPermaLink="false">897@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I just installed phpThumb on a local XAMPP site, works very well.&#60;br /&#62;
Now I tried the supplied demo files, and all work fine, except phpThumb.demo.gallery.php. Here I get the error&#60;br /&#62;
&#60;code&#62;failed to open &#34;/demo/images/&#34;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I tried various settings for the path variables but was not able to get it to work. In a Google search I found many test sites with the same problem, but no solution.&#60;/p&#62;
&#60;p&#62;What do I need to enter for $basedir etc. to get the gallery demo to work on XAMPP?&#60;/p&#62;
&#60;p&#62;Thank you!&#60;/p&#62;
&#60;p&#62;Cheers, Ralf.
&#60;/p&#62;</description>
</item>
<item>
<title>realfun784 on "Inpage Use of PHP Thumb code  Error"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/inpage-use-of-php-thumb-code-error#post-583</link>
<pubDate>Sun, 08 Jan 2012 01:33:36 +0000</pubDate>
<dc:creator>realfun784</dc:creator>
<guid isPermaLink="false">583@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I use this code in&#60;br /&#62;
&#60;code&#62;&#38;lt;? require_once 'ThumbLib.inc.php';&#60;br /&#62;
require_once 'ThumbLib.inc.php';&#60;br /&#62;
			$image = $wallpapername .'_'. $wallpaperid .''. $fileformat;&#60;br /&#62;
		$thumb = PhpThumbFactory::create($image);&#60;br /&#62;
$thumb-&#38;gt;adaptiveResize(1280, 720);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;br /&#62;
?&#38;gt;&#60;/code&#62;&#60;br /&#62;
 i got error in page&#60;br /&#62;
this&#60;br /&#62;
&#60;code&#62;Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to undefined method/class function: triggerError' in C:\xampp\htdocs\wallspro\ThumbBase.inc.php:209 Stack trace: #0 [internal function]: ThumbBase-&#38;gt;__call('triggerError', Array) #1 C:\xampp\htdocs\wallspro\ThumbBase.inc.php(172): GdThumb-&#38;gt;triggerError('Image file not ...') #2 C:\xampp\htdocs\wallspro\ThumbBase.inc.php(110): ThumbBase-&#38;gt;fileExistsAndReadable() #3 C:\xampp\htdocs\wallspro\GdThumb.inc.php(96): ThumbBase-&#38;gt;__construct('sunny_leone_hot...', false) #4 C:\xampp\htdocs\wallspro\ThumbLib.inc.php(127): GdThumb-&#38;gt;__construct('sunny_leone_hot...', Array, false) #5 C:\xampp\htdocs\wallspro\show-wallpaper.php(114): PhpThumbFactory::create('sunny_leone_hot...') #6 {main} thrown in C:\xampp\htdocs\wallspro\ThumbBase.inc.php on line 209&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>phazei on "How do I enlarge small images?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-enlarge-small-images#post-179</link>
<pubDate>Wed, 01 Jun 2011 11:29:47 +0000</pubDate>
<dc:creator>phazei</dc:creator>
<guid isPermaLink="false">179@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Bump!&#60;/p&#62;
&#60;p&#62;If resizing to something larger than the original image, it maintains the original image size.  There should be options to stretch, maintain ratio and crop, or fill with some background color.
&#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-a-few-actions-per-pageload#post-177</link>
<pubDate>Tue, 22 Mar 2011 12:56:54 +0000</pubDate>
<dc:creator>Ben</dc:creator>
<guid isPermaLink="false">177@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>robsonrdasilva on "How do I enlarge small images?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-do-i-enlarge-small-images#post-169</link>
<pubDate>Fri, 21 Jan 2011 09:19:25 +0000</pubDate>
<dc:creator>robsonrdasilva</dc:creator>
<guid isPermaLink="false">169@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi.&#60;br /&#62;
I'm making a website and i'm using phpthumb to make thumbnails.&#60;br /&#62;
But I have some small imagens and I need enlarge them. &#60;/p&#62;
&#60;p&#62;For example:&#60;br /&#62;
I have a image with 200x100 pixels and I need transform it to 500x300 pixels.&#60;/p&#62;
&#60;p&#62;How do I make it?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>impulsez on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-168</link>
<pubDate>Sat, 15 Jan 2011 21:25:17 +0000</pubDate>
<dc:creator>impulsez</dc:creator>
<guid isPermaLink="false">168@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;hey there&#60;/p&#62;
&#60;p&#62;i was experiencing the same problem with my localhost, i changed the site path to 127.0.0.1 and everything is fine.&#60;br /&#62;
Thanx a lot this posts helped me a lot :)
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "show() gives me very wierd output"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/show-gives-me-very-wierd-output#post-164</link>
<pubDate>Tue, 23 Nov 2010 13:43:02 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">164@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You need to set a header before you do a show.  i.e. header('Content-Type: image/jpeg');
&#60;/p&#62;</description>
</item>
<item>
<title>Clifford on "show() gives me very wierd output"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/show-gives-me-very-wierd-output#post-163</link>
<pubDate>Tue, 23 Nov 2010 06:33:24 +0000</pubDate>
<dc:creator>Clifford</dc:creator>
<guid isPermaLink="false">163@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;hi there,&#60;/p&#62;
&#60;p&#62;i have this code :&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$thumb = PhpThumbFactory::create('images/gallery/33.jpg');&#60;br /&#62;
$thumb-&#38;gt;resize(100, 100);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and it does not show the image i just shows aload (100's) of weird characters&#60;/p&#62;
&#60;p&#62;anyone know whats up ?&#60;/p&#62;
&#60;p&#62;im running PHP 5.2.5&#60;/p&#62;
&#60;p&#62;thanks in advance !&#60;br /&#62;
Sean
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "Caching"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/caching#post-159</link>
<pubDate>Mon, 22 Mar 2010 17:23:25 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">159@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;LOL i seen where someone asked about caching for another phpthumb library. HOWEVER, i assure you i am using your library :P&#60;/p&#62;
&#60;p&#62;Anyway i was curious is there a setting to enable caching in your library so that the images don't refresh every time i go to the site? If not do you have plans on implementing such a feature in the future?&#60;/p&#62;
&#60;p&#62;Signed,&#60;br /&#62;
A long time a dedicated user of your library, &#60;strong&#62;I LOVE IT&#60;/strong&#62; :) most usefully thing i have EVER found on the internet!
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-158</link>
<pubDate>Sat, 27 Feb 2010 10:14:17 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">158@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Sorry im just now responding Ian but yes changing it from localhost to 127.0.0.1 made everything start working &#60;strong&#62;PERFECTLY!!!&#60;/strong&#62; thank you so much :)
&#60;/p&#62;</description>
</item>
<item>
<title>kapikua on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-157</link>
<pubDate>Thu, 11 Feb 2010 09:45:10 +0000</pubDate>
<dc:creator>kapikua</dc:creator>
<guid isPermaLink="false">157@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello &#60;/p&#62;
&#60;p&#62;Yes, i update JPG images. And Yes... i have 100 in compression because dont like lost cality.&#60;/p&#62;
&#60;p&#62;Whats is a level of best compresion? 80 ?
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-156</link>
<pubDate>Wed, 10 Feb 2010 09:54:33 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">156@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Are you working with JPEGs?  If so, the quality by default is 100% which uses no compression.  Take a look at the docs for more info on how to set this.
&#60;/p&#62;</description>
</item>
<item>
<title>kapikua on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-154</link>
<pubDate>Wed, 10 Feb 2010 02:19:55 +0000</pubDate>
<dc:creator>kapikua</dc:creator>
<guid isPermaLink="false">154@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;I'm using this application to a panel of pictures and when I get an image of 50 kb to the server and change the image size but weighs 100 kb.&#60;/p&#62;
&#60;p&#62;Example:&#60;/p&#62;
&#60;p&#62;I upload an image of 800 x 600 and weighs 70 kb. When set to size up the 500 x300 image and weighs 170 kb.&#60;/p&#62;
&#60;p&#62;Someone knows why could this happen?&#60;/p&#62;
&#60;p&#62;Thanks 4 help
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-151</link>
<pubDate>Thu, 14 Jan 2010 11:08:08 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">151@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Doh, didn't see your update... either way, sounds like you got things figured out
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-150</link>
<pubDate>Thu, 14 Jan 2010 11:06:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">150@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah, but you have output before you show the image :)&#60;/p&#62;
&#60;p&#62;Basically, you can't have ANY output whatsoever before showing the image.  You'll basically need to wrap the functionality in a script that you call from an img tag in your HTML.  Check out &#34;Showing Images&#34; on &#60;a href=&#34;http://wiki.github.com/masterexploder/PHPThumb/basic-usage&#34; rel=&#34;nofollow&#34;&#62;http://wiki.github.com/masterexploder/PHPThumb/basic-usage&#60;/a&#62; (towards the bottom of the page)&#60;/p&#62;
&#60;p&#62;As far as your image goes, that's actually Gravatar ;)
&#60;/p&#62;</description>
</item>
<item>
<title>leafy34 on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-148</link>
<pubDate>Wed, 13 Jan 2010 21:14:28 +0000</pubDate>
<dc:creator>leafy34</dc:creator>
<guid isPermaLink="false">148@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Oh, and how did the site manage to get a photo of me? hahaha... I most certainly didnt upload this... OpenID maybe?
&#60;/p&#62;</description>
</item>
<item>
<title>leafy34 on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-147</link>
<pubDate>Wed, 13 Jan 2010 21:12:31 +0000</pubDate>
<dc:creator>leafy34</dc:creator>
<guid isPermaLink="false">147@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;UPDATE:&#60;/strong&#62; Found previous post, and was referred here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#ShowingImages&#34; rel=&#34;nofollow&#34;&#62;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#ShowingImages&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;First off, nice application, I am really looking forward to using its functionality except, I seem to run into an error with headers.&#60;/p&#62;
&#60;p&#62;Here is what I am thrown:&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot show image, headers have already been sent' in /home/user/public_html/domain/includes/GdThumb.inc.php:569 Stack trace: #0 /home/user/public_html/domain/testthis.php(9): GdThumb-&#38;gt;show() #1 {main} thrown in /home/user/public_html/domain/includes/GdThumb.inc.php on line 569&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;Here is the code from the page &#34;testthis.php&#34;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php require_once('includes/ThumbLib.inc.php'); ?&#38;gt;&#60;br /&#62;
&#38;lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#38;gt;&#60;br /&#62;
&#38;lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#38;gt;&#60;br /&#62;
&#38;lt;head&#38;gt;&#38;lt;title&#38;gt;&#38;lt;/title&#38;gt;&#38;lt;/head&#38;gt;&#60;br /&#62;
&#38;lt;body&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
$thumb = PhpThumbFactory::create('quotemark1.png');&#60;br /&#62;
$thumb-&#38;gt;resize(100, 100);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;/body&#38;gt;&#60;br /&#62;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I really am unsure as to why this is happening, since there is no output before ThumbLib.inc.php is required.&#60;/p&#62;
&#60;p&#62;Any help will be very appreciated!&#60;br /&#62;
Cheers, Lea
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-146</link>
<pubDate>Tue, 08 Dec 2009 21:43:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">146@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah it's a path to a file.  I can't remember the EXACT path to it since I've been off windows for a long time, but it's definitely in the system32\something folder.&#60;/p&#62;
&#60;p&#62;We ran into something weird like this at my 9-5 where local sales demos of our product would act weird on some machines when using the localhost address, but worked just fine with the 127.0.0.1 address... no real explanation for it, it's just a windows thing I guess ;)
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-145</link>
<pubDate>Tue, 08 Dec 2009 20:34:55 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">145@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Is that a directory path? &#34;windows\system32\etc\hosts&#34; if so I don't see it. I use VertrigoServ to set up a quick test server on my laptops(that and it saves me the hassle of installing apache/mysql/php and it just does it all at once for me)... I'm just perplexed cause everything works fine on my other laptop
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-144</link>
<pubDate>Tue, 08 Dec 2009 13:57:35 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">144@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You tried using 127.0.0.1/path_to_image?&#60;/p&#62;
&#60;p&#62;Sometimes localhost doesn't resolve properly.  Check your windows\system32\etc\hosts file, you could probably add a line in there for localhost so it resolves.&#60;/p&#62;
&#60;p&#62;Hope that helps, and thanks for the comments :)
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-143</link>
<pubDate>Tue, 08 Dec 2009 05:04:53 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">143@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I don't know why but on my current host I don't get an error when I use this script. AND on my old localhost here on my laptop I never got this error. But now that I got my new localhost and copied all my info over and what not I get this error and can't figure it out. I've tried to tweak the php.ini (memory_limit to be exact) file to get it to work &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;Warning: getimagesize(http://localhost/path_to_image.../image.png) [function.getimagesize]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\path_to_php_thumb_resize\GdThumb.inc.php on line 1070&#60;/p&#62;
&#60;p&#62;Fatal error: Maximum execution time of 30 seconds exceeded in C:\path_to_php_thumb_resize\GdThumb.inc.php on line 1070&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Anyway I realize you do this all for free and on your spare time so I REALLY appreciate any and all help you can give me :) thank you &#38;#38; thank you for this AMAZING script :)
&#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-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>
<item>
<title>Ian on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-134</link>
<pubDate>Mon, 16 Nov 2009 09:23:43 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">134@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Are you trying to sign in with your forum credentials (those you use here), or a github account?&#60;/p&#62;
&#60;p&#62;Either way, it's not a big deal, I'll create the ticket for you, but the best way to keep abreast of things is to watch me on github :)
&#60;/p&#62;</description>
</item>
<item>
<title>Frosty on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-133</link>
<pubDate>Mon, 16 Nov 2009 05:08:56 +0000</pubDate>
<dc:creator>Frosty</dc:creator>
<guid isPermaLink="false">133@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi Ian, I tried to leave a support ticket but it wouldn't let me sign in with my details :(&#60;/p&#62;
&#60;p&#62;I'll keep coming back to see if new versions support caching though. It's a great feature.&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Laurence
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-132</link>
<pubDate>Wed, 11 Nov 2009 23:15:19 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">132@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You're right, I totally forgot to keep that sucker around... why not head over to github and file a ticket?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://github.com/iselby/PHPThumb/issues&#34; rel=&#34;nofollow&#34;&#62;http://github.com/iselby/PHPThumb/issues&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for the compliments, glad you're getting good use / enjoyment out of the library :)
&#60;/p&#62;</description>
</item>
<item>
<title>Frosty on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-131</link>
<pubDate>Wed, 11 Nov 2009 04:26:01 +0000</pubDate>
<dc:creator>Frosty</dc:creator>
<guid isPermaLink="false">131@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi, in previous versions of PHPThumb the image caching was a really great feature, but in version 3.x I can't seem to find this feature anywhere.&#60;/p&#62;
&#60;p&#62;On some slower servers the caching is a really nice feature to have.&#60;/p&#62;
&#60;p&#62;Am I not using the software correctly, or is it actually missing from version 3?&#60;/p&#62;
&#60;p&#62;If it's missing, are there any plans to introduce it?&#60;/p&#62;
&#60;p&#62;Whilst leaving this message, I'd like to say what a great bit of software I think php Thumb is.&#60;/p&#62;
&#60;p&#62;Laurence
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "How save converted image into MySQL (blob)"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-save-converted-image-into-mysql-blob#post-124</link>
<pubDate>Tue, 13 Oct 2009 15:57:10 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">124@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;To store an image in the database, I'd first write it to the file system in some temp location, then use file_get_contents to get the actual data to store in the DB.&#60;/p&#62;
&#60;p&#62;As far as forcing output type, check out: &#60;a href=&#34;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#SavingImages&#34; rel=&#34;nofollow&#34;&#62;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#SavingImages&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>OrderByRand on "How save converted image into MySQL (blob)"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-save-converted-image-into-mysql-blob#post-123</link>
<pubDate>Mon, 12 Oct 2009 11:51:55 +0000</pubDate>
<dc:creator>OrderByRand</dc:creator>
<guid isPermaLink="false">123@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Welcome,&#60;/p&#62;
&#60;p&#62;I would ask two question.&#60;/p&#62;
&#60;p&#62;First, how can i convert image into string &#60;em&#62;then save to MySQL.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;I have try following but without positive result. ( i think its foul of headers).&#60;/p&#62;
&#60;p&#62;&#60;code&#62; ob_start();&#60;br /&#62;
 $thumb-&#38;gt;show();&#60;br /&#62;
 $out = ob_get_clean();&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Second, how force to use output format ?&#60;br /&#62;
I want store output images in JPG format.&#60;/p&#62;
&#60;p&#62;Please excuse my language
&#60;/p&#62;</description>
</item>

</channel>
</rss>

