<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Image Resize</title>
	<atom:link href="http://jamesfrank.info/joomla/image-resize/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesfrank.info</link>
	<description>James Frank . Info: Visions of Code, Creativity, and Career</description>
	<lastBuildDate>Mon, 12 Jul 2010 15:13:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Mike</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-3702</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 16 Jan 2010 14:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-3702</guid>
		<description>The idea behind this plugin is great. Unfortunately, the coding-style of this plugin is not perfect and may lead to others problems:

* there is no (built-in) way deleting images from the cache. 
* images with the right width are also cached. why? 
* only works when there is exactly one space and no other tags between &#039;&lt;img&#039; and &#039;src=&quot;:..:&quot;&#039;. This makes is not working with JCE image-manager and others

If will improve the code and send if to the author.

reg, m</description>
		<content:encoded><![CDATA[<p>The idea behind this plugin is great. Unfortunately, the coding-style of this plugin is not perfect and may lead to others problems:</p>
<p>* there is no (built-in) way deleting images from the cache.<br />
* images with the right width are also cached. why?<br />
* only works when there is exactly one space and no other tags between &#8216;&lt;img&#039; and &#039;src=&quot;:..:&quot;&#039;. This makes is not working with JCE image-manager and others</p>
<p>If will improve the code and send if to the author.</p>
<p>reg, m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahisorn Wongphati</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-3684</link>
		<dc:creator>Mahisorn Wongphati</dc:creator>
		<pubDate>Fri, 15 Jan 2010 14:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-3684</guid>
		<description>Thanks for the great extention

I do some tweak including
 - apply patch from bug tracker
 - apply with image inside &quot;images/stories/&quot; only
 - with a longer width image only

code (only php file ) is available at 
http://www.thairobotics.com/index.php?option=com_phocadownload&amp;view=category&amp;id=5:joomlacode&amp;download=4:imageresizephp&amp;Itemid=17</description>
		<content:encoded><![CDATA[<p>Thanks for the great extention</p>
<p>I do some tweak including<br />
 &#8211; apply patch from bug tracker<br />
 &#8211; apply with image inside &#8220;images/stories/&#8221; only<br />
 &#8211; with a longer width image only</p>
<p>code (only php file ) is available at<br />
<a href="http://www.thairobotics.com/index.php?option=com_phocadownload&amp;view=category&amp;id=5:joomlacode&amp;download=4:imageresizephp&amp;Itemid=17" rel="nofollow">http://www.thairobotics.com/index.php?option=com_phocadownload&amp;view=category&amp;id=5:joomlacode&amp;download=4:imageresizephp&amp;Itemid=17</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GLjungberg</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-2669</link>
		<dc:creator>GLjungberg</dc:creator>
		<pubDate>Wed, 25 Nov 2009 13:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-2669</guid>
		<description>... and the same happens to me on a Linux-server</description>
		<content:encoded><![CDATA[<p>&#8230; and the same happens to me on a Linux-server</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VinZ</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-2661</link>
		<dc:creator>VinZ</dc:creator>
		<pubDate>Tue, 24 Nov 2009 10:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-2661</guid>
		<description>Hi I have the same problem 

Warning: mkdir() [function.mkdir]: File exists in ...content/imageresize.php on line 52

Warning: mkdir() [function.mkdir]: File exists in ...plugins/content/imageresize.php on line 52

I use php5 on ovh server please give me a solution</description>
		<content:encoded><![CDATA[<p>Hi I have the same problem </p>
<p>Warning: mkdir() [function.mkdir]: File exists in &#8230;content/imageresize.php on line 52</p>
<p>Warning: mkdir() [function.mkdir]: File exists in &#8230;plugins/content/imageresize.php on line 52</p>
<p>I use php5 on ovh server please give me a solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe2night</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-2623</link>
		<dc:creator>joe2night</dc:creator>
		<pubDate>Thu, 19 Nov 2009 10:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-2623</guid>
		<description>Hi!

Since the public servers (even the paid ones) NEVER have imagemagic it&#039;s completely useless to write code which relies on it. Here is a modified version (open up imageresize.php and replace the getCache function) which doesn&#039;t require imagemagic. It works perfectly, enjoy:
function getCache($imagePath, $restofTag)
{
	
	//first, check to see if the rest of the tag has the width parameter
	$wPattern = &#039;/width=&quot;([^&quot;]*)&quot;/&#039;;
	preg_match($wPattern, $restofTag, $match);

	if($match[1] &gt; 0) {
		$imgData = getimagesize($imagePath);
		$width = $match[1];
		$height = round(($width/$imgData[0])*$imgData[1]);
	} else{
		$imgData = getimagesize($imagePath);
		$width = $imgData[0];
		$height = round(($width/$imgData[0])*$imgData[1]);
	}
	
	$fileName = getFileName($imagePath);
	if($imgData[&#039;mime&#039;] == &quot;image/png&quot; &#124;&#124; $imgData[&#039;mime&#039;] == &quot;image/x-png&quot;){
		$source = imagecreatefrompng($imagePath);
	} elseif($imgData[&#039;mime&#039;] == &quot;image/gif&quot;){
		$source = imagecreatefromgif($imagePath);
	} else{
		$source = imagecreatefromjpeg($imagePath);
	}
	$imageDir = getDir($imagePath);
	$imageCacheDir = &quot;cache/&quot; . getDir($imagePath);


	$fileNameCache = $width . &quot;-&quot; . $fileName;

	$cache = $imageCacheDir . &quot;/&quot; . $fileNameCache;

	// create the cache if it doesn&#039;t exist
	if(!is_dir($imageCacheDir))
		mkdir($imageCacheDir,0777,true);
	
	// create the file if it doesn&#039;t exist
	if(!file_exists($cache)) {
		$new_image = imagecreatetruecolor($width,$height);
		imagecopyresampled($new_image,$source,0,0,0,0,$width,$height,$imgData[0],$imgData[1]);
        imagejpeg($new_image,$cache);
        chmod($cache, 0777);
		//exec(&#039;convert -resize &quot;&#039; . $width . &#039;&quot; &quot;&#039; . $imageDir . &quot;/&quot; . $fileName . &#039;&quot; &quot;&#039; . $cache . &#039;&quot;&#039;);
	}
	
	if(!file_exists($cache))
		return null;

	return &quot;&quot;;
}</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Since the public servers (even the paid ones) NEVER have imagemagic it&#8217;s completely useless to write code which relies on it. Here is a modified version (open up imageresize.php and replace the getCache function) which doesn&#8217;t require imagemagic. It works perfectly, enjoy:<br />
function getCache($imagePath, $restofTag)<br />
{</p>
<p>	//first, check to see if the rest of the tag has the width parameter<br />
	$wPattern = &#8216;/width=&#8221;([^"]*)&#8221;/&#8217;;<br />
	preg_match($wPattern, $restofTag, $match);</p>
<p>	if($match[1] &gt; 0) {<br />
		$imgData = getimagesize($imagePath);<br />
		$width = $match[1];<br />
		$height = round(($width/$imgData[0])*$imgData[1]);<br />
	} else{<br />
		$imgData = getimagesize($imagePath);<br />
		$width = $imgData[0];<br />
		$height = round(($width/$imgData[0])*$imgData[1]);<br />
	}</p>
<p>	$fileName = getFileName($imagePath);<br />
	if($imgData['mime'] == &#8220;image/png&#8221; || $imgData['mime'] == &#8220;image/x-png&#8221;){<br />
		$source = imagecreatefrompng($imagePath);<br />
	} elseif($imgData['mime'] == &#8220;image/gif&#8221;){<br />
		$source = imagecreatefromgif($imagePath);<br />
	} else{<br />
		$source = imagecreatefromjpeg($imagePath);<br />
	}<br />
	$imageDir = getDir($imagePath);<br />
	$imageCacheDir = &#8220;cache/&#8221; . getDir($imagePath);</p>
<p>	$fileNameCache = $width . &#8220;-&#8221; . $fileName;</p>
<p>	$cache = $imageCacheDir . &#8220;/&#8221; . $fileNameCache;</p>
<p>	// create the cache if it doesn&#8217;t exist<br />
	if(!is_dir($imageCacheDir))<br />
		mkdir($imageCacheDir,0777,true);</p>
<p>	// create the file if it doesn&#8217;t exist<br />
	if(!file_exists($cache)) {<br />
		$new_image = imagecreatetruecolor($width,$height);<br />
		imagecopyresampled($new_image,$source,0,0,0,0,$width,$height,$imgData[0],$imgData[1]);<br />
        imagejpeg($new_image,$cache);<br />
        chmod($cache, 0777);<br />
		//exec(&#8216;convert -resize &#8220;&#8216; . $width . &#8216;&#8221; &#8220;&#8216; . $imageDir . &#8220;/&#8221; . $fileName . &#8216;&#8221; &#8220;&#8216; . $cache . &#8216;&#8221;&#8216;);<br />
	}</p>
<p>	if(!file_exists($cache))<br />
		return null;</p>
<p>	return &#8220;&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse van Bekkum</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-2283</link>
		<dc:creator>Jesse van Bekkum</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-2283</guid>
		<description>One comment: The dragging/resizing does not work in Google chrome, but displaying the image does.  Resizing does work in Firefox</description>
		<content:encoded><![CDATA[<p>One comment: The dragging/resizing does not work in Google chrome, but displaying the image does.  Resizing does work in Firefox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huw thomas</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-1209</link>
		<dc:creator>Huw thomas</dc:creator>
		<pubDate>Sat, 13 Jun 2009 11:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-1209</guid>
		<description>I too am havinng the 

&#039;Warning: mkdir() expects at most 2 parameters, 3 given in [path omitted -J]/plugins/content/imageresize.php on line x&#039; problem.  Did anybody find a cure for it in the end?  can it be sorted?</description>
		<content:encoded><![CDATA[<p>I too am havinng the </p>
<p>&#8216;Warning: mkdir() expects at most 2 parameters, 3 given in [path omitted -J]/plugins/content/imageresize.php on line x&#8217; problem.  Did anybody find a cure for it in the end?  can it be sorted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Sydenham</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-784</link>
		<dc:creator>Thomas Sydenham</dc:creator>
		<pubDate>Fri, 24 Apr 2009 06:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-784</guid>
		<description>so sorry. I just found out, that when I re-publish the Image Resize Plugin the problem returns...</description>
		<content:encoded><![CDATA[<p>so sorry. I just found out, that when I re-publish the Image Resize Plugin the problem returns&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Sydenham</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-783</link>
		<dc:creator>Thomas Sydenham</dc:creator>
		<pubDate>Fri, 24 Apr 2009 05:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-783</guid>
		<description>Problem with JoomlaPack, XAMPP and ImageResize

Hi, just thought I would share this.
Recently I tried to backup/migrate a site from a webhost to my computer running XAMPP. I backed up with JoomlaPack and used kickstart.php to install the site on my XAMPP in windows.
The Joomla site does not run a lot of extensions, however I have installed Image Resize. http://extensions.joomla.org/extensions/5694/details a great plugin.
When I installed the site on my local machine, no images would display in the front-end, but they did display in the backend. I tried several options; backing up the site using FTP and PhpMyadmin – i.e. not using JoomlaPack, disabling .htaccess, purging the cache, saving articles. Nothing worked. When I tried migrating to a sub-domain on my webhost, the images would display in the frontend without any problems.

Solution: After running kickstart.php, enter the backed and un-publish the Image Resize Plugin, purge the cache and expired cache and publish the Image Resize Plugin again. Presto!.

Is it weird that this problem would occur on migrating to XAMPP but not to a linux-based webhost. Oh, well I found a solution.

A big thank you to the developers of Joomla, JoomlaPack and Image Resize.</description>
		<content:encoded><![CDATA[<p>Problem with JoomlaPack, XAMPP and ImageResize</p>
<p>Hi, just thought I would share this.<br />
Recently I tried to backup/migrate a site from a webhost to my computer running XAMPP. I backed up with JoomlaPack and used kickstart.php to install the site on my XAMPP in windows.<br />
The Joomla site does not run a lot of extensions, however I have installed Image Resize. <a href="http://extensions.joomla.org/extensions/5694/details" rel="nofollow">http://extensions.joomla.org/extensions/5694/details</a> a great plugin.<br />
When I installed the site on my local machine, no images would display in the front-end, but they did display in the backend. I tried several options; backing up the site using FTP and PhpMyadmin – i.e. not using JoomlaPack, disabling .htaccess, purging the cache, saving articles. Nothing worked. When I tried migrating to a sub-domain on my webhost, the images would display in the frontend without any problems.</p>
<p>Solution: After running kickstart.php, enter the backed and un-publish the Image Resize Plugin, purge the cache and expired cache and publish the Image Resize Plugin again. Presto!.</p>
<p>Is it weird that this problem would occur on migrating to XAMPP but not to a linux-based webhost. Oh, well I found a solution.</p>
<p>A big thank you to the developers of Joomla, JoomlaPack and Image Resize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Sydenham</title>
		<link>http://jamesfrank.info/joomla/image-resize/#comment-676</link>
		<dc:creator>Thomas Sydenham</dc:creator>
		<pubDate>Thu, 09 Apr 2009 15:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://jamesfrank.info/?page_id=27#comment-676</guid>
		<description>Great extention. It has not been updated for a while. I implemented the bugfixes at joomlacode.org myself, and it seems to run smoothly. Thanks a lot, guys.</description>
		<content:encoded><![CDATA[<p>Great extention. It has not been updated for a while. I implemented the bugfixes at joomlacode.org myself, and it seems to run smoothly. Thanks a lot, guys.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
