<?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: 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:40: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>applelms on "Pilot Fermo Capless"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/pilot-fermo-capless-1#post-287</link>
<pubDate>Fri, 23 Dec 2011 00:29:30 +0000</pubDate>
<dc:creator>applelms</dc:creator>
<guid isPermaLink="false">287@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;If we see around, films can be the principal supply of internet of males and ladies of all age groups.&#60;strong&#62;&#60;a href=&#34;http://www.jewelleryoflinkslondon.com/&#34;&#62;links bracelet&#60;/a&#62;&#60;/strong&#62; , by method of the last four-five years, it has obtained instead much less difficult and common to create movement image downloads consequently everyone desires to review the tricks which could help him/her to obtain divx films even although saving time and money.&#60;strong&#62;&#60;a href=&#34;http://www.saleonlinepandora.com/&#34;&#62;pandora&#60;/a&#62;&#60;/strong&#62; , by way with this article, the writer has thrown mild on some extremely essential aspects, which just one really should consider treatment of even although developing films downloads.&#60;strong&#62;&#60;a href=&#34;http://www.usefulhandbags.com/&#34;&#62;buy replica louis vuitton&#60;/a&#62;&#60;/strong&#62; , It's extremely beneficial for all movement image buffs that desire to obtain divx films with high quality and speed.&#60;strong&#62;&#60;a href=&#34;http://www.classiquepandora.com/&#34;&#62;pandora bijoux&#60;/a&#62;&#60;/strong&#62; ,&#60;/p&#62;
&#60;p&#62;Before you think to create divx movement image download, e.g. The Twilight Saga: New Moon, you really should arrange a PC as well as a speedy internet relationship namely, the broadband connection. The an exceptional offer more speedy internet relationship you have, lesser the time it will consider to obtain complete divx movies. Go to world broad internet to create divx films obtain but don't get entrapped within cobweb of websites.&#60;/p&#62;
&#60;p&#62;As it has obtained extremely common to obtain divx movies, consequently a massive amount of websites, much more compared to Internet, guarantee to provide high quality divx downloads. Don't get baffled with innumerous websites. Opt to an genuine internet website extremely very carefully and obtain divx films even although saving your useful time and difficult earned dollars.&#60;/p&#62;
&#60;p&#62;It's of utmost worth to decide on best internet website to create movement image downloads. The aim will most most likely be the simple fact that picking a incorrect internet website may possibly harm your individual computer with viruses and spywares etc. There may possibly be considered a broad range of websites, which lure site visitors by utilizing the world free. They guarantee to provide totally free films obtain but in turn have an effect on your individual computer with harmful factors acknowledged as virus. Thus, it's extremely an exceptional offer essential to decide on the best internet website to obtain divx movies.&#60;/p&#62;
&#60;p&#62;How can just one locate the best website? The main element which you contact for to retain in views will most most likely be the simple fact that don't go using the internet sites which guarantee to provide totally free divx movement image downloads. It's worth spending some bucks if you obtain the high quality films and that as well not possessing any hassles. If some internet website asks one to subscribe to their services, you really should totally go with that just one as this sort of internet sites ordinarily provide high quality downloads with safety.&#60;/p&#62;
&#60;p&#62;The craze to obtain films will get an exceptional offer more as well as an exceptional offer more common with each and every passing evening and subsequently, it's gonna be an exceptional offer more complicated as well. So, you really should safe your do it yourself today. adhere to the above supplied ideas and locate out one of the most effective internet website to obtain divx films and enjoy.
&#60;/p&#62;</description>
</item>
<item>
<title>kro on "dreamweaver issue"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/dreamweaver-issue#post-192</link>
<pubDate>Mon, 24 Oct 2011 05:41:49 +0000</pubDate>
<dc:creator>kro</dc:creator>
<guid isPermaLink="false">192@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;sorry wrong section&#60;/p&#62;
&#60;p&#62;you may delete this post i created a new one in bugs
&#60;/p&#62;</description>
</item>
<item>
<title>kro on "dreamweaver issue"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/dreamweaver-issue-1#post-191</link>
<pubDate>Mon, 24 Oct 2011 05:40:36 +0000</pubDate>
<dc:creator>kro</dc:creator>
<guid isPermaLink="false">191@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;an error is due to creation of _notes directories all around when you sync a website using dreamweaver&#60;/p&#62;
&#60;p&#62;phpthumb go and look in this directory to find plugins&#60;/p&#62;
&#60;p&#62;here is the ssolution : modify PhpThumb.inc.php line 217 and add&#60;br /&#62;
&#124;&#124; $file == '_notes'&#60;br /&#62;
like this :&#60;/p&#62;
&#60;p&#62;if ($file == '.' &#124;&#124; $file == '..' &#124;&#124; $file == '.svn' &#124;&#124; $file == '_notes')
&#60;/p&#62;</description>
</item>
<item>
<title>kro on "dreamweaver issue"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/dreamweaver-issue#post-190</link>
<pubDate>Mon, 24 Oct 2011 05:33:52 +0000</pubDate>
<dc:creator>kro</dc:creator>
<guid isPermaLink="false">190@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;an error is due to creation of _notes directories all around when you sync a website using dremweaver&#60;/p&#62;
&#60;p&#62;phpthumb go and look in this directory to find plugins&#60;/p&#62;
&#60;p&#62;here is the ssolution : modify PhpThumb.inc.php line 217 and add&#60;br /&#62;
  &#124;&#124; $file == '_notes'&#60;br /&#62;
like this :&#60;/p&#62;
&#60;p&#62;if ($file == '.' &#124;&#124; $file == '..' &#124;&#124; $file == '.svn' &#124;&#124; $file == '_notes')
&#60;/p&#62;</description>
</item>
<item>
<title>Carlos on "Image EPS CMYK"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-eps-cmyk#post-189</link>
<pubDate>Sat, 15 Oct 2011 07:45:36 +0000</pubDate>
<dc:creator>Carlos</dc:creator>
<guid isPermaLink="false">189@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;good afternoon&#60;/p&#62;
&#60;p&#62;the CMYK EPS file type is acceptable?&#60;/p&#62;
&#60;p&#62;Is there an example for me to look?&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>forgotz on "PHP Album App"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/php-album-app#post-186</link>
<pubDate>Sun, 11 Sep 2011 09:58:38 +0000</pubDate>
<dc:creator>forgotz</dc:creator>
<guid isPermaLink="false">186@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Updated as of Sep. 11 2011. I would like to implement PHPThumb into my scripts. Below are the two scripts any ideas or suggestions, would be very much appreciated. &#60;/p&#62;
&#60;p&#62;Inspected every line of code and updated install instructions. This mod is tight except display still needs a fix...demo is currently at this site, &#60;a href=&#34;http://php-evolved.com/&#34;&#62;http://php-evolved.com/&#60;/a&#62;. I also have forum threads going on this topic &#60;a href=&#34;http://www.icyphoenix.com/viewtopic.php?f=24&#38;#38;t=8057&#34;&#62;here&#60;/a&#62; and &#60;a href=&#34;http://evolution-xtreme.com/modules.php?name=Forums&#38;#38;file=viewtopic&#38;#38;t=4637&#34;&#62;here&#60;/a&#62;. As mentioned in those threads, everything is working, except PHP image generation scripts are not working (album_thumbnail.php and album_pic.php), or at least that appears to be the issue. Again, the port appears to be a success - except for the most important thing, the images will not display :(  Today, I started from scratch and did the port once again - still the same result. The resolution MUST be something simple. I implemented a new image class and nothing. Tried rewriting the .htaccess files and still nothing. Even downloaded the FAP and attempted a port, and that was even worse. That's all good though, because I don't want everything that comes with FAP. The port of Album Mod version 2.0.56 is all I want - clean, simple and well integrated. Visit &#60;a href=&#34;http://php-evolved.com&#34;&#62;php-evolved.com&#60;/a&#62; for yourself and see what I am talking about. Any help at all would be greatly appreciated. Below, I have attached the second port that I did today. Maybe this is above my pay grade, and I should leave it - but I do not wish to. Have come this far and everything else is working, it's just a shame that this one thing has tripped me up...&#60;/p&#62;
&#60;p&#62;-K&#60;/p&#62;
&#60;p&#62;album_thumbnail.php&#60;br /&#62;
&#60;code&#62;&#60;/p&#62;
&#60;p&#62;define('IN_PHPBB', true);&#60;br /&#62;
$album_root_path = $phpbb_root_path . 'album_mod/';&#60;br /&#62;
include($phpbb_root_path . 'extension.inc');&#60;br /&#62;
include($phpbb_root_path . 'common.'.$phpEx);&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
// Start session management&#60;br /&#62;
//&#60;br /&#62;
$userdata = session_pagestart($user_ip, PAGE_ALBUM);&#60;br /&#62;
init_userprefs($userdata);&#60;br /&#62;
//&#60;br /&#62;
// End session management&#60;br /&#62;
//&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
// Get general album information&#60;br /&#62;
//&#60;br /&#62;
include($album_root_path . 'album_common.'.$phpEx);&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check the request&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if( isset($HTTP_GET_VARS['pic_id']) )&#60;br /&#62;
{&#60;br /&#62;
	$pic_id = intval($HTTP_GET_VARS['pic_id']);&#60;br /&#62;
}&#60;br /&#62;
else if( isset($HTTP_POST_VARS['pic_id']) )&#60;br /&#62;
{&#60;br /&#62;
	$pic_id = intval($HTTP_POST_VARS['pic_id']);&#60;br /&#62;
}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
	die('No pics specified');&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Get this pic info&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;$sql = &#34;SELECT *&#60;br /&#62;
		FROM &#34;. ALBUM_TABLE .&#34;&#60;br /&#62;
		WHERE pic_id = '$pic_id'&#34;;&#60;br /&#62;
if( !($result = $db-&#38;gt;sql_query($sql)) )&#60;br /&#62;
{&#60;br /&#62;
	message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);&#60;br /&#62;
}&#60;br /&#62;
$thispic = $db-&#38;gt;sql_fetchrow($result);&#60;/p&#62;
&#60;p&#62;$cat_id = $thispic['pic_cat_id'];&#60;br /&#62;
$user_id = $thispic['pic_user_id'];&#60;/p&#62;
&#60;p&#62;$pic_filetype = substr($thispic['pic_filename'], strlen($thispic['pic_filename']) - 4, 4);&#60;br /&#62;
$pic_filename = $thispic['pic_filename'];&#60;br /&#62;
$pic_thumbnail = $thispic['pic_thumbnail'];&#60;/p&#62;
&#60;p&#62;if( empty($thispic) or !file_exists(ALBUM_UPLOAD_PATH . $pic_filename) )&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Pic_not_exist']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Get the current Category Info&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if ($cat_id != PERSONAL_GALLERY)&#60;br /&#62;
{&#60;br /&#62;
	$sql = &#34;SELECT *&#60;br /&#62;
			FROM &#34;. ALBUM_CAT_TABLE .&#34;&#60;br /&#62;
			WHERE cat_id = '$cat_id'&#34;;&#60;br /&#62;
	if( !($result = $db-&#38;gt;sql_query($sql)) )&#60;br /&#62;
	{&#60;br /&#62;
		message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$thiscat = $db-&#38;gt;sql_fetchrow($result);&#60;br /&#62;
}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
	$thiscat = init_personal_gallery_cat($user_id);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if (empty($thiscat))&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Category_not_exist']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check the permissions&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;$album_user_access = album_user_access($cat_id, $thiscat, 1, 0, 0, 0, 0, 0); // VIEW&#60;/p&#62;
&#60;p&#62;if ($album_user_access['view'] == 0)&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Not_Authorised']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check Pic Approval&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if ($userdata['user_level'] != ADMIN)&#60;br /&#62;
{&#60;br /&#62;
	if( ($thiscat['cat_approval'] == ADMIN) or (($thiscat['cat_approval'] == MOD) and !$album_user_access['moderator']) )&#60;br /&#62;
	{&#60;br /&#62;
		if ($thispic['pic_approval'] != 1)&#60;br /&#62;
		{&#60;br /&#62;
			die($lang['Not_Authorised']);&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check hotlink&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if( ($album_config['hotlink_prevent'] == 1) and (isset($HTTP_SERVER_VARS['HTTP_REFERER'])) )&#60;br /&#62;
{&#60;br /&#62;
	$check_referer = explode('?', $HTTP_SERVER_VARS['HTTP_REFERER']);&#60;br /&#62;
	$check_referer = trim($check_referer[0]);&#60;/p&#62;
&#60;p&#62;	$good_referers = array();&#60;/p&#62;
&#60;p&#62;	if ($album_config['hotlink_allowed'] != '')&#60;br /&#62;
	{&#60;br /&#62;
		$good_referers = explode(',', $album_config['hotlink_allowed']);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$good_referers[] = $board_config['server_name'] . $board_config['script_path'];&#60;/p&#62;
&#60;p&#62;	$errored = TRUE;&#60;/p&#62;
&#60;p&#62;	for ($i = 0; $i &#38;lt; count($good_referers); $i++)&#60;br /&#62;
	{&#60;br /&#62;
		$good_referers[$i] = trim($good_referers[$i]);&#60;/p&#62;
&#60;p&#62;		if( (strstr($check_referer, $good_referers[$i])) and ($good_referers[$i] != '') )&#60;br /&#62;
		{&#60;br /&#62;
			$errored = FALSE;&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	if ($errored)&#60;br /&#62;
	{&#60;br /&#62;
		die($lang['Not_Authorised']);&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/*&#60;br /&#62;
+----------------------------------------------------------&#60;br /&#62;
&#124; Main work here...&#60;br /&#62;
+----------------------------------------------------------&#60;br /&#62;
*/&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Send Thumbnail to browser&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if( ($pic_filetype != '.jpg') and ($pic_filetype != '.png') and ($pic_filetype != '.gif') )&#60;br /&#62;
{&#60;br /&#62;
	// --------------------------------&#60;br /&#62;
	// GD does not support GIF so we must SEND a premade No-thumbnail pic then EXIT&#60;br /&#62;
	// --------------------------------&#60;/p&#62;
&#60;p&#62;	header('Content-type: image/jpeg');&#60;br /&#62;
	readfile($images['no_thumbnail']);&#60;br /&#62;
	exit;&#60;br /&#62;
}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
	// --------------------------------&#60;br /&#62;
	// Check thumbnail cache. If cache is available we will SEND &#38;#38; EXIT&#60;br /&#62;
	// --------------------------------&#60;/p&#62;
&#60;p&#62;	if( ($album_config['thumbnail_cache'] == 1) and ($pic_thumbnail != '') and file_exists(ALBUM_CACHE_PATH . $pic_thumbnail) )&#60;br /&#62;
	{&#60;br /&#62;
		switch ($pic_filetype)&#60;br /&#62;
		{&#60;br /&#62;
		  case '.gif':&#60;br /&#62;
			case '.jpg':&#60;br /&#62;
				header('Content-type: image/jpeg');&#60;br /&#62;
				break;&#60;br /&#62;
			case '.png':&#60;br /&#62;
				header('Content-type: image/png');&#60;br /&#62;
				break;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		readfile(ALBUM_CACHE_PATH . $pic_thumbnail);&#60;br /&#62;
		exit;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	// --------------------------------&#60;br /&#62;
	// Hmm, cache is empty. Try to re-generate!&#60;br /&#62;
	// --------------------------------&#60;/p&#62;
&#60;p&#62;	$pic_size = @getimagesize(ALBUM_UPLOAD_PATH . $pic_filename);&#60;br /&#62;
	$pic_width = $pic_size[0];&#60;br /&#62;
	$pic_height = $pic_size[1];&#60;/p&#62;
&#60;p&#62;	$gd_errored = FALSE;&#60;br /&#62;
	switch ($pic_filetype)&#60;br /&#62;
	{&#60;br /&#62;
	 case '.gif':&#60;br /&#62;
      $read_function = 'imagecreatefromgif';&#60;br /&#62;
      $pic_filetype = '.jpg';&#60;br /&#62;
   break;&#60;br /&#62;
		case '.jpg':&#60;br /&#62;
			$read_function = 'imagecreatefromjpeg';&#60;br /&#62;
			break;&#60;br /&#62;
		case '.png':&#60;br /&#62;
			$read_function = 'imagecreatefrompng';&#60;br /&#62;
			break;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$src = @$read_function(ALBUM_UPLOAD_PATH  . $pic_filename);&#60;/p&#62;
&#60;p&#62;	if (!$src)&#60;br /&#62;
	{&#60;br /&#62;
		$gd_errored = TRUE;&#60;br /&#62;
		$pic_thumbnail = '';&#60;br /&#62;
	}&#60;br /&#62;
	else if( ($pic_width &#38;gt; $album_config['thumbnail_size']) or ($pic_height &#38;gt; $album_config['thumbnail_size']) )&#60;br /&#62;
	{&#60;br /&#62;
		// ----------------------------&#60;br /&#62;
		// Resize it&#60;br /&#62;
		// ----------------------------&#60;/p&#62;
&#60;p&#62;		if ($pic_width &#38;gt; $pic_height)&#60;br /&#62;
		{&#60;br /&#62;
			$thumbnail_width = $album_config['thumbnail_size'];&#60;br /&#62;
			$thumbnail_height = $album_config['thumbnail_size'] * ($pic_height/$pic_width);&#60;br /&#62;
		}&#60;br /&#62;
		else&#60;br /&#62;
		{&#60;br /&#62;
			$thumbnail_height = $album_config['thumbnail_size'];&#60;br /&#62;
			$thumbnail_width = $album_config['thumbnail_size'] * ($pic_width/$pic_height);&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		$thumbnail = ($album_config['gd_version'] == 1) ? @imagecreate($thumbnail_width, $thumbnail_height) : @imagecreatetruecolor($thumbnail_width, $thumbnail_height);&#60;/p&#62;
&#60;p&#62;		$resize_function = ($album_config['gd_version'] == 1) ? 'imagecopyresized' : 'imagecopyresampled';&#60;/p&#62;
&#60;p&#62;		@$resize_function($thumbnail, $src, 0, 0, 0, 0, $thumbnail_width, $thumbnail_height, $pic_width, $pic_height);&#60;br /&#62;
	}&#60;br /&#62;
	else&#60;br /&#62;
	{&#60;br /&#62;
		$thumbnail = $src;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	if (!$gd_errored)&#60;br /&#62;
	{&#60;br /&#62;
		if ($album_config['thumbnail_cache'] == 1)&#60;br /&#62;
		{&#60;br /&#62;
			// ------------------------&#60;br /&#62;
			// Re-generate successfully. Write it to disk!&#60;br /&#62;
			// ------------------------&#60;/p&#62;
&#60;p&#62;			$pic_thumbnail = $pic_filename;&#60;/p&#62;
&#60;p&#62;			switch ($pic_filetype)&#60;br /&#62;
			{&#60;br /&#62;
				case '.jpg':&#60;br /&#62;
					@imagejpeg($thumbnail, ALBUM_CACHE_PATH . $pic_thumbnail, $album_config['thumbnail_quality']);&#60;br /&#62;
					break;&#60;br /&#62;
				case '.png':&#60;br /&#62;
					@imagepng($thumbnail, ALBUM_CACHE_PATH . $pic_thumbnail);&#60;br /&#62;
					break;&#60;br /&#62;
			}&#60;/p&#62;
&#60;p&#62;			@chmod(ALBUM_CACHE_PATH . $pic_thumbnail, 0777);&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		// ----------------------------&#60;br /&#62;
		// After write to disk, donot forget to send to browser also&#60;br /&#62;
		// ----------------------------&#60;/p&#62;
&#60;p&#62;		switch ($pic_filetype)&#60;br /&#62;
		{&#60;br /&#62;
			case '.jpg':&#60;br /&#62;
				@imagejpeg($thumbnail, '', $album_config['thumbnail_quality']);&#60;br /&#62;
				break;&#60;br /&#62;
			case '.png':&#60;br /&#62;
				@imagepng($thumbnail);&#60;br /&#62;
				break;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		exit;&#60;br /&#62;
	}&#60;br /&#62;
	else&#60;br /&#62;
	{&#60;br /&#62;
		// ----------------------------&#60;br /&#62;
		// It seems you have not GD installed :(&#60;br /&#62;
		// ----------------------------&#60;/p&#62;
&#60;p&#62;		header('Content-type: image/jpeg');&#60;br /&#62;
		readfile('images/nothumbnail.jpg');&#60;br /&#62;
		exit;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;album_pic.php&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
define('IN_PHPBB', true);&#60;br /&#62;
$album_root_path = $phpbb_root_path . 'album_mod/';&#60;br /&#62;
include($phpbb_root_path . 'extension.inc');&#60;br /&#62;
include($phpbb_root_path . 'common.'.$phpEx);&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
// Start session management&#60;br /&#62;
//&#60;br /&#62;
$userdata = session_pagestart($user_ip, PAGE_ALBUM);&#60;br /&#62;
init_userprefs($userdata);&#60;br /&#62;
//&#60;br /&#62;
// End session management&#60;br /&#62;
//&#60;/p&#62;
&#60;p&#62;//&#60;br /&#62;
// Get general album information&#60;br /&#62;
//&#60;br /&#62;
include($album_root_path . 'album_common.'.$phpEx);&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check the request&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if( isset($HTTP_GET_VARS['pic_id']) )&#60;br /&#62;
{&#60;br /&#62;
	$pic_id = intval($HTTP_GET_VARS['pic_id']);&#60;br /&#62;
}&#60;br /&#62;
else if( isset($HTTP_POST_VARS['pic_id']) )&#60;br /&#62;
{&#60;br /&#62;
	$pic_id = intval($HTTP_POST_VARS['pic_id']);&#60;br /&#62;
}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
	die('No pics specified');&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Get this pic info&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;$sql = &#34;SELECT *&#60;br /&#62;
		FROM &#34;. ALBUM_TABLE .&#34;&#60;br /&#62;
		WHERE pic_id = '$pic_id'&#34;;&#60;br /&#62;
if( !($result = $db-&#38;gt;sql_query($sql)) )&#60;br /&#62;
{&#60;br /&#62;
	message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql);&#60;br /&#62;
}&#60;br /&#62;
$thispic = $db-&#38;gt;sql_fetchrow($result);&#60;/p&#62;
&#60;p&#62;$cat_id = $thispic['pic_cat_id'];&#60;br /&#62;
$user_id = $thispic['pic_user_id'];&#60;/p&#62;
&#60;p&#62;$pic_filetype = substr($thispic['pic_filename'], strlen($thispic['pic_filename']) - 4, 4);&#60;br /&#62;
$pic_filename = $thispic['pic_filename'];&#60;br /&#62;
$pic_thumbnail = $thispic['pic_thumbnail'];&#60;/p&#62;
&#60;p&#62;if( empty($thispic) or !file_exists(ALBUM_UPLOAD_PATH . $pic_filename) )&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Pic_not_exist']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Get the current Category Info&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if ($cat_id != PERSONAL_GALLERY)&#60;br /&#62;
{&#60;br /&#62;
	$sql = &#34;SELECT *&#60;br /&#62;
			FROM &#34;. ALBUM_CAT_TABLE .&#34;&#60;br /&#62;
			WHERE cat_id = '$cat_id'&#34;;&#60;br /&#62;
	if( !($result = $db-&#38;gt;sql_query($sql)) )&#60;br /&#62;
	{&#60;br /&#62;
		message_die(GENERAL_ERROR, 'Could not query category information', '', __LINE__, __FILE__, $sql);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$thiscat = $db-&#38;gt;sql_fetchrow($result);&#60;br /&#62;
}&#60;br /&#62;
else&#60;br /&#62;
{&#60;br /&#62;
	$thiscat = init_personal_gallery_cat($user_id);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if (empty($thiscat))&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Category_not_exist']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check the permissions&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;$album_user_access = album_user_access($cat_id, $thiscat, 1, 0, 0, 0, 0, 0); // VIEW&#60;br /&#62;
if ($album_user_access['view'] == 0)&#60;br /&#62;
{&#60;br /&#62;
	die($lang['Not_Authorised']);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check Pic Approval&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if ($userdata['user_level'] != ADMIN)&#60;br /&#62;
{&#60;br /&#62;
	if( ($thiscat['cat_approval'] == ADMIN) or (($thiscat['cat_approval'] == MOD) and !$album_user_access['moderator']) )&#60;br /&#62;
	{&#60;br /&#62;
		if ($thispic['pic_approval'] != 1)&#60;br /&#62;
		{&#60;br /&#62;
			die($lang['Not_Authorised']);&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Check hotlink&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;if( ($album_config['hotlink_prevent'] == 1) and (isset($HTTP_SERVER_VARS['HTTP_REFERER'])) )&#60;br /&#62;
{&#60;br /&#62;
	$check_referer = explode('?', $HTTP_SERVER_VARS['HTTP_REFERER']);&#60;br /&#62;
	$check_referer = trim($check_referer[0]);&#60;/p&#62;
&#60;p&#62;	$good_referers = array();&#60;/p&#62;
&#60;p&#62;	if ($album_config['hotlink_allowed'] != '')&#60;br /&#62;
	{&#60;br /&#62;
		$good_referers = explode(',', $album_config['hotlink_allowed']);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	$good_referers[] = $board_config['server_name'] . $board_config['script_path'];&#60;/p&#62;
&#60;p&#62;	$errored = TRUE;&#60;/p&#62;
&#60;p&#62;	for ($i = 0; $i &#38;lt; count($good_referers); $i++)&#60;br /&#62;
	{&#60;br /&#62;
		$good_referers[$i] = trim($good_referers[$i]);&#60;/p&#62;
&#60;p&#62;		if( (strstr($check_referer, $good_referers[$i])) and ($good_referers[$i] != '') )&#60;br /&#62;
		{&#60;br /&#62;
			$errored = FALSE;&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	if ($errored)&#60;br /&#62;
	{&#60;br /&#62;
		die($lang['Not_Authorised']);&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;/*&#60;br /&#62;
+----------------------------------------------------------&#60;br /&#62;
&#124; Main work here...&#60;br /&#62;
+----------------------------------------------------------&#60;br /&#62;
*/&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Increase view counter&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;$sql = &#34;UPDATE &#34;. ALBUM_TABLE .&#34;&#60;br /&#62;
		SET pic_view_count = pic_view_count + 1&#60;br /&#62;
		WHERE pic_id = '$pic_id'&#34;;&#60;br /&#62;
if( !($result = $db-&#38;gt;sql_query($sql)) )&#60;br /&#62;
{&#60;br /&#62;
	message_die(GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// ------------------------------------&#60;br /&#62;
// Okay, now we can send image to the browser&#60;br /&#62;
// ------------------------------------&#60;/p&#62;
&#60;p&#62;switch ( $pic_filetype )&#60;br /&#62;
{&#60;br /&#62;
	case '.png':&#60;br /&#62;
		header('Content-type: image/png');&#60;br /&#62;
		break;&#60;br /&#62;
	case '.gif':&#60;br /&#62;
		header('Content-type: image/gif');&#60;br /&#62;
		break;&#60;br /&#62;
	case '.jpg':&#60;br /&#62;
		header('Content-type: image/jpeg');&#60;br /&#62;
		break;&#60;br /&#62;
	default:&#60;br /&#62;
		die('The filename data in the DB was corrupted');&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;readfile(ALBUM_UPLOAD_PATH  . $thispic['pic_filename']);&#60;/p&#62;
&#60;p&#62;exit;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>webchimp on "Create imagen from String and PNG Transparency"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/create-imagen-from-string-and-png-transparency#post-185</link>
<pubDate>Thu, 18 Aug 2011 09:33:17 +0000</pubDate>
<dc:creator>webchimp</dc:creator>
<guid isPermaLink="false">185@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello to every one, i just tried to resize a PNG from a string and saw that the transparency was not preserved. I read the documentation and found that the &#60;strong&#62;create&#60;/strong&#62; function receives an array with options, where i could pass the parameter 'preserveTransparency' and 'preserveAlpha'. The problem is that when the format of the image is STRING (as set when you create an image from a stream) this options does not works.&#60;/p&#62;
&#60;p&#62;I found this line (line 1154) in &#60;strong&#62;GDThumb.inc.php&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if ($this-&#38;gt;format == 'PNG' &#38;#38;&#38;#38; $this-&#38;gt;options['preserveAlpha'] === true)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I found that if i change that line, the transparency is now preserved:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if ($this-&#38;gt;format == 'PNG' &#124;&#124; $this-&#38;gt;options['preserveAlpha'] === true)&#60;/code&#62;
&#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-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>amjad on "Adaptive resize problem"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/adaptive-resize-problem#post-181</link>
<pubDate>Sat, 25 Jun 2011 05:01:37 +0000</pubDate>
<dc:creator>amjad</dc:creator>
<guid isPermaLink="false">181@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello&#60;br /&#62;
I'm using adaptiveResize to force exact dimensions for an image. But the problem is: the library crops the image. The new dimensions is correct but some parts of the image is cropped.
&#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>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>LukasKaine on "Any way to bypass "allow URL fopen"?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/any-way-to-bypass-allow-url-fopen#post-178</link>
<pubDate>Tue, 17 May 2011 10:05:58 +0000</pubDate>
<dc:creator>LukasKaine</dc:creator>
<guid isPermaLink="false">178@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Is there any way to make this class work with &#34;allow url fopen&#34; php setting on? If i pass the normal image URL, i get an error on getimagesize() method.&#60;/p&#62;
&#60;p&#62;I'm currently fixing this issue by passing the full physica lpath to the class, but it's not so &#34;security-safe&#34;.&#60;/p&#62;
&#60;p&#62;I'd like not to pass a relative path, because in the structure i'm working, that would be quite tricky to realize, cause there are many dynamic paths involved, and also, i'd like to avoid to pass a parameter like: &#34;../../../../../images_folder/image.jpg&#34;&#60;/p&#62;
&#60;p&#62;Thank you.
&#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>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>ecarlevaro on "suggestions from another library"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/suggestions-from-another-library#post-175</link>
<pubDate>Tue, 08 Mar 2011 07:15:26 +0000</pubDate>
<dc:creator>ecarlevaro</dc:creator>
<guid isPermaLink="false">175@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I'am agree. Most of all, the write text feature, to avoid use watermark.
&#60;/p&#62;</description>
</item>
<item>
<title>ecarlevaro on "Plugin: Watermarking Issue"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/plugin-watermarking-issue#post-174</link>
<pubDate>Tue, 08 Mar 2011 07:11:17 +0000</pubDate>
<dc:creator>ecarlevaro</dc:creator>
<guid isPermaLink="false">174@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi! I`m having troubles with memory limit when i use the watermark plugin with 60 images of 700x600 pixeles at 150 KB each image (and the watermark is only a PNG image of 1.32 KB).&#60;/p&#62;
&#60;p&#62;In fact, with 60 images, memory_get_usage() say is in use 67 MB of memory!!!.&#60;/p&#62;
&#60;p&#62;I'm not sure it is possible optimize the watermark plugin code.&#60;/p&#62;
&#60;p&#62;The code i'm using is similar:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
class GdWatermarkLib
{
 /**
 * Instance of GdThumb passed to this class
 *
 * @var GdThumb
 */
 protected $parentInstance;
 protected $currentDimensions;
 protected $workingImage;
 protected $newImage;
 protected $options;

 public function createWatermark ($watermark, $mask_position, $mask_padding, $that)
 {
 // bring stuff from the parent class into this class...
 $this-&#38;gt;parentInstance = $that;
 $this-&#38;gt;currentDimensions = $this-&#38;gt;parentInstance-&#38;gt;getCurrentDimensions();
 $this-&#38;gt;mask_position = $mask_position;

 $width = $this-&#38;gt;currentDimensions[&#38;#39;width&#38;#39;];
 $height = $this-&#38;gt;currentDimensions[&#38;#39;height&#38;#39;];

 $watermarksize = getimagesize($watermark);
 $dest_x = $width - $watermarksize[0] - 55;
 $dest_y = $height - $watermarksize[1] - 55;
 //$watermark = imagecreatefrompng($watermark);

 $pathinfo = pathinfo($watermark);
 $var1 = $pathinfo[&#38;#39;extension&#38;#39;];
 $var2 = &#38;quot;png&#38;quot;;
 $var3 = &#38;quot;jpeg&#38;quot;;
 $var4 = &#38;quot;jpg&#38;quot;;
 $var5 = &#38;quot;gif&#38;quot;;
 if(strcasecmp($var1, $var2) == 0){
 $watermark = @imagecreatefrompng($watermark);
 }elseif((strcasecmp($var1, $var3) == 0) &#124;&#124; (strcasecmp($var1, $var4) == 0)){
 $watermark = @imagecreatefromjpeg($watermark);
 }elseif(strcasecmp($var1, $var5) == 0){
 $watermark = @imagecreatefromgif($watermark);
 }

 switch($mask_position) {
  case &#38;#39;cc&#38;#39;:
  // Center
  $dest_x = round(($width - $watermarksize[0]) / 2);
  $dest_y = round(($height - $watermarksize[1]) / 2);
  break;
  case &#38;#39;lt&#38;#39;:
  // Left Top
  $dest_x = $mask_padding;
  $dest_y = $mask_padding;
  break;
  case &#38;#39;rt&#38;#39;:
  // Right Top
  $dest_x = $width - $mask_padding - $watermarksize[0];
  $dest_y = $mask_padding;
  break;
  case &#38;#39;lb&#38;#39;:
  // Left Bottom
  $dest_x = $mask_padding;
  $dest_y = $height - $mask_padding - $watermarksize[1];
  break;
  case &#38;#39;rb&#38;#39;:
  // Right Bottom
  $dest_x = $width - $mask_padding - $watermarksize[0];
  $dest_y = $height - $mask_padding - $watermarksize[1];
  break;
  case &#38;#39;cb&#38;#39;:
  // Center Bottom
  $dest_x = round(($width - $watermarksize[0]) / 2);
  $dest_y = $height - $mask_padding - $watermarksize[1];
  break;
  }

 imagecopy($this-&#38;gt;parentInstance-&#38;gt;getOldImage(), $watermark, $dest_x, $dest_y, 0, 0, $watermarksize[0], $watermarksize[1]);

 return $that;
 }
}

$pt = PhpThumb::getInstance();
$pt-&#38;gt;registerPlugin(&#38;#39;GdWatermarkLib&#38;#39;,&#38;#39;gd&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If there is possible optimize something in this code, i will be grateful.&#60;/p&#62;
&#60;p&#62;I just need write text on the image, so i'm using watermark plugin but if there is another GD function to write text over the image it will be useful to me
&#60;/p&#62;</description>
</item>
<item>
<title>AJB on "Image Quality"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-quality#post-173</link>
<pubDate>Fri, 21 Jan 2011 10:14:46 +0000</pubDate>
<dc:creator>AJB</dc:creator>
<guid isPermaLink="false">173@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Is there a function for changing the quality of an image?&#60;/p&#62;
&#60;p&#62;Something like:&#60;/p&#62;
&#60;p&#62;$thumb -&#38;gt; quality(50);&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>AJB on "Force Exact Pixels on Resize"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/force-exact-pixels-on-resize#post-172</link>
<pubDate>Fri, 21 Jan 2011 10:13:44 +0000</pubDate>
<dc:creator>AJB</dc:creator>
<guid isPermaLink="false">172@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Scratch this. I figured out that it was an issue in my aspect ratio calculations for the dims I was passing to PHPthumb.&#60;/p&#62;
&#60;p&#62;I forgot to floor the values before calculating them.&#60;/p&#62;
&#60;p&#62;Works great. Thanks for the awesome class.
&#60;/p&#62;</description>
</item>
<item>
<title>AJB on "Force Exact Pixels on Resize"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/force-exact-pixels-on-resize#post-171</link>
<pubDate>Fri, 21 Jan 2011 10:04:10 +0000</pubDate>
<dc:creator>AJB</dc:creator>
<guid isPermaLink="false">171@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I'm using the resize function and getting undesired results with regard to the W and H dims.&#60;/p&#62;
&#60;p&#62;Basically, I'm telling resize to create an image that's 400 * 500 let's say. BUT, depending on the original dimensions I get 400 * 498 or something like that.&#60;/p&#62;
&#60;p&#62;I understand that resize is attetmpting to retain the original aspect ratio but I don't want it to do that. And I don't want to use the crop function.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>AJB on "Circumvent Cached Version"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/circumvent-cached-version#post-170</link>
<pubDate>Fri, 21 Jan 2011 10:01:55 +0000</pubDate>
<dc:creator>AJB</dc:creator>
<guid isPermaLink="false">170@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I've got an AJAX app that creates a new thumb but even though it succeeds I'm seeing the old version because I keep the same filename (for good reason).&#60;/p&#62;
&#60;p&#62;How can I circumvent the cache and force the new version to be returned?
&#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>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>fuhrysteve on "PhpThumb and Zend Framework integration"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/phpthumb-and-zend-framework-integration#post-166</link>
<pubDate>Mon, 27 Dec 2010 07:06:50 +0000</pubDate>
<dc:creator>fuhrysteve</dc:creator>
<guid isPermaLink="false">166@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Easiest / best way is to write a custom Autoloader. I blogged about how to do that &#60;a href=&#34;http://blog.montmere.com/2010/12/26/autoload-phpthumb-with-zend-framework/&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Only thing you'll want to change in the actual source (assuming you want to use ImageMagick, which you do - it's much faster) is in ThumbLib.inc.php:&#60;/p&#62;
&#60;p&#62;Change:&#60;br /&#62;
&#60;code&#62;define('DEFAULT_THUMBLIB_IMPLEMENTATION', 'gd');&#60;/code&#62;&#60;br /&#62;
To:&#60;br /&#62;
&#60;code&#62;define('DEFAULT_THUMBLIB_IMPLEMENTATION', 'imagick');&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>oggame on "round corners"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/zoomcrop#post-165</link>
<pubDate>Thu, 02 Dec 2010 06:35:37 +0000</pubDate>
<dc:creator>oggame</dc:creator>
<guid isPermaLink="false">165@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;sure, and its easy.. look at those examples how to quickly and easily &#60;a href=&#34;http://freelogic.pl/thumbnailer&#34;&#62;thumbs with rounded corners using php&#60;/a&#62; can be done
&#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>manjushree on "show() does not show image, instead returns page url"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/show-does-not-show-image-instead-returns-page-url#post-162</link>
<pubDate>Tue, 16 Nov 2010 21:56:57 +0000</pubDate>
<dc:creator>manjushree</dc:creator>
<guid isPermaLink="false">162@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I am using the following code:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
    require_once('simplepie1.1.3/simplepie.inc');&#60;br /&#62;
    require_once('simplepie1.1.3/idn/idna_convert.class.php');&#60;br /&#62;
    require_once('simplepie1.1.3/shorten.inc');&#60;br /&#62;
    ini_set('display_errors','On');&#60;/p&#62;
&#60;p&#62;	// sp shorten method&#60;/p&#62;
&#60;p&#62;	// Shortening function.&#60;/p&#62;
&#60;p&#62;	function shorten($string, $length)&#60;br /&#62;
	{&#60;br /&#62;
		// By default, an ellipsis will be appended to the end of the text.&#60;br /&#62;
		$suffix = '...';&#60;/p&#62;
&#60;p&#62;		// Convert 'smart' punctuation to 'dumb' punctuation, strip the HTML tags,&#60;br /&#62;
		// and convert all tabs and line-break characters to single spaces.&#60;br /&#62;
		$short_desc = trim(str_replace(array(&#34;\r&#34;,&#34;\n&#34;, &#34;\t&#34;), ' ', strip_tags($string)));&#60;/p&#62;
&#60;p&#62;		// Cut the string to the requested length, and strip any extraneous spaces&#60;br /&#62;
		// from the beginning and end.&#60;br /&#62;
		$desc = trim(substr($short_desc, 0, $length));&#60;/p&#62;
&#60;p&#62;		// Find out what the last displayed character is in the shortened string&#60;br /&#62;
		$lastchar = substr($desc, -1, 1);&#60;/p&#62;
&#60;p&#62;		// If the last character is a period, an exclamation point, or a question&#60;br /&#62;
		// mark, clear out the appended text.&#60;br /&#62;
		if ($lastchar == '.' &#124;&#124; $lastchar == '!' &#124;&#124; $lastchar == '?') $suffix='';&#60;/p&#62;
&#60;p&#62;		// Append the text.&#60;br /&#62;
		$desc .= $suffix;&#60;/p&#62;
&#60;p&#62;		// Send the new description back to the page.&#60;br /&#62;
		return $desc;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function copyFile($img_url,$img_name)&#60;br /&#62;
							{&#60;br /&#62;
							    $crl_ptr= curl_init( $img_url );&#60;br /&#62;
							    $file_ptr=fopen($img_name,'w');&#60;/p&#62;
&#60;p&#62;							    curl_setopt( $crl_ptr, CURLOPT_FILE, $file_ptr );&#60;br /&#62;
							    curl_setopt( $crl_ptr, CURLOPT_HEADER, 0 );&#60;br /&#62;
							    curl_exec  ( $crl_ptr );&#60;/p&#62;
&#60;p&#62;							    $curl_info = curl_getInfo( $crl_ptr );&#60;br /&#62;
							    curl_close($crl_ptr );&#60;br /&#62;
							    fclose($file_ptr);    &#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;require_once '../ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;		// display wordpress images starts&#60;br /&#62;
		$b=''; // initialize variable to zero&#60;br /&#62;
		$feed = new SimplePie();&#60;/p&#62;
&#60;p&#62;		$feed-&#38;gt;set_feed_url(array('http://www.fakingnews.com/feed/'));&#60;/p&#62;
&#60;p&#62;		$feed-&#38;gt;enable_cache(true);&#60;br /&#62;
		$feed-&#38;gt;set_cache_duration(3600);&#60;br /&#62;
		$feed-&#38;gt;set_cache_location('cache');&#60;br /&#62;
		$feed-&#38;gt;init();&#60;br /&#62;
		$feed-&#38;gt;handle_content_type();&#60;/p&#62;
&#60;p&#62;		$i=0;$flag=0;	$fetched_url ='';&#60;/p&#62;
&#60;p&#62;		foreach ($feed-&#38;gt;get_items(0,4) as $key =&#38;gt;$item)&#60;br /&#62;
		{&#60;/p&#62;
&#60;p&#62;		$url = $item-&#38;gt;get_permalink();&#60;br /&#62;
		$posturl	=preg_replace(&#34;/(http:\/\/)/i&#34;,'',$url);  &#60;/p&#62;
&#60;p&#62;		// Match the image tags in the content&#60;br /&#62;
		preg_match_all('/&#38;lt;img([^&#38;gt;]*)&#38;gt;/i', $item-&#38;gt;get_content(), $matches);&#60;/p&#62;
&#60;p&#62;		$itemdate = $item-&#38;gt;get_date(&#34;H:i a&#34;);&#60;/p&#62;
&#60;p&#62;		// Get all of the image tags&#60;/p&#62;
&#60;p&#62;				foreach ($matches as $value)&#60;br /&#62;
				{&#60;/p&#62;
&#60;p&#62;					foreach ($value as $val)&#60;br /&#62;
					{&#60;/p&#62;
&#60;p&#62;						if (preg_match_all('/src=\&#34;([^\&#34;]+)\&#34;/i', $val,$matches))&#60;br /&#62;
						{&#60;/p&#62;
&#60;p&#62;							$b='';&#60;br /&#62;
							// $image_match = $matches[1][1];&#60;br /&#62;
							$image_url = $matches[0][0];&#60;/p&#62;
&#60;p&#62;							$a= str_replace('src=', '',$image_url);&#60;br /&#62;
														$b= str_replace('&#34;','',$a);&#60;br /&#62;
							echo &#34;&#38;lt;b&#38;gt;&#34;.$b.&#34;&#38;lt;/b&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;/**&#60;br /&#62;
* @desc file: This source was used for copying images from another server to our own server and can be modified according to requirements.&#60;br /&#62;
*/&#60;br /&#62;
//***********************URL of image which you need**************&#60;br /&#62;
$img_url='http://roomenvy.files.wordpress.com/2010/02/living-room1.jpg';&#60;br /&#62;
$ext_arr=explode(&#34;/&#34;,$img_url);&#60;br /&#62;
$cnt=count($ext_arr);&#60;br /&#62;
//***********************name of new image you want to keep*************&#60;br /&#62;
$img_name=$ext_arr[($cnt-1)];&#60;br /&#62;
copyFile($img_url,$img_name);//Call the CURL function for getting image&#60;br /&#62;
/**&#60;br /&#62;
* @desc This function uses curl for coping a remote image file from another server to its own directory.&#60;br /&#62;
*/&#60;/p&#62;
&#60;p&#62;$img='living-room1.jpg';&#60;br /&#62;
$thumb = PhpThumbFactory::create($img);&#60;br /&#62;
// displaying images&#60;br /&#62;
$fileName = (isset($_GET['file'])) ? urldecode($_GET['file']) : null;&#60;br /&#62;
if ($fileName === null &#124;&#124; !file_exists($fileName))&#60;br /&#62;
{&#60;br /&#62;
     // handle missing images however you want... perhaps show a default image??  Up to you...&#60;br /&#62;
}&#60;br /&#62;
try&#60;br /&#62;
{&#60;br /&#62;
     $thumb = PhpThumbFactory::create($fileName);&#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;br /&#62;
$thumb-&#38;gt;adaptiveResize(180, 60);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;/p&#62;
&#60;p&#62;							// get the image width and height&#60;br /&#62;
								list($width, $height) = getimagesize($b);&#60;br /&#62;
								 echo &#34;$width x $height (px)&#34;;&#60;br /&#62;
								 echo &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
								// get the image width and height ends&#60;/p&#62;
&#60;p&#62;}}}}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;It creates thumb and saves also properly. But when the show method is added it does not show the images. If I create a page and add the saving, creating thumb and showing the thumb methods in a page, it works perfectly. But the moment I add this code inside the simplepie parser code, it creates a problem. Please if anyone can help me ou with this problem.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Manjushree &#60;/p&#62;
&#60;p&#62;&#38;lt;/body&#38;gt;&#60;br /&#62;
&#38;lt;/html&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "Error on Live Site Help Please"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/error-on-live-site-help-please#post-161</link>
<pubDate>Mon, 09 Aug 2010 16:24:31 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">161@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;UPDATE:&#60;/strong&#62;  it looks like if i target the image like this is works just fine&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.umfi.com/lib/thumb.php?filename=../project_files/harleydavidson/harley_davidson.jpg&#38;#38;width=255&#38;#38;height=205&#34; rel=&#34;nofollow&#34;&#62;http://www.umfi.com/lib/thumb.php?filename=../project_files/harleydavidson/harley_davidson.jpg&#38;#38;width=255&#38;#38;height=205&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;im still curious though as to why it stopped working using the full path to the image.
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "Error on Live Site Help Please"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/error-on-live-site-help-please#post-160</link>
<pubDate>Mon, 09 Aug 2010 16:23:09 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">160@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;i would copy and paste it all but its just better i guess if you go look for your self....&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.umfi.com/lib/thumb.php?filename=http://www.umfi.com/project_files/harleydavidson/harley_davidson.jpg&#38;#38;width=255&#38;#38;height=205&#34; rel=&#34;nofollow&#34;&#62;http://www.umfi.com/lib/thumb.php?filename=http://www.umfi.com/project_files/harleydavidson/harley_davidson.jpg&#38;#38;width=255&#38;#38;height=205&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and here is the page it is suppose to display on&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.umfi.com/projects/harleydavidson&#34; rel=&#34;nofollow&#34;&#62;http://www.umfi.com/projects/harleydavidson&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;now it use to work and it doesn't anymore... so im really at a loss as to whats going on. I set permissions on everything to 777 LOL but that didn't do anything
&#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>

</channel>
</rss>

