<?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/"
		>
<channel>
	<title>Comments on: Jquery image upload and crop for PHP</title>
	<atom:link href="http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/</link>
	<description>Web Design/Development, Marketing, Communication and E-Solutions</description>
	<lastBuildDate>Thu, 18 Mar 2010 11:18:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: webb</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-5579</link>
		<dc:creator>webb</dc:creator>
		<pubDate>Fri, 15 Jan 2010 11:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-5579</guid>
		<description>This is a really cool stuff. Great work guys.</description>
		<content:encoded><![CDATA[<p>This is a really cool stuff. Great work guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Brückner</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-3498</link>
		<dc:creator>Simon Brückner</dc:creator>
		<pubDate>Mon, 17 Aug 2009 19:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-3498</guid>
		<description>I am trying to use the script but have issues with the path where the images are saved:

I need to use &quot;/Users/myuser/Sites/images/&quot; as $upload_dir so that the chmod stuff works.

But when the upload has finished, the crop function is broken, as this one expects the path to be &quot;/images/&quot;,  not &quot;/Users/myuser/Sites/images/&quot;.

is there any easy way to adjust the script, or am I just not seeing the solution?</description>
		<content:encoded><![CDATA[<p>I am trying to use the script but have issues with the path where the images are saved:</p>
<p>I need to use &#8220;/Users/myuser/Sites/images/&#8221; as $upload_dir so that the chmod stuff works.</p>
<p>But when the upload has finished, the crop function is broken, as this one expects the path to be &#8220;/images/&#8221;,  not &#8220;/Users/myuser/Sites/images/&#8221;.</p>
<p>is there any easy way to adjust the script, or am I just not seeing the solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Wilson</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-3266</link>
		<dc:creator>Kevin Wilson</dc:creator>
		<pubDate>Wed, 05 Aug 2009 22:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-3266</guid>
		<description>First, thanks for this great tutorial.

I had everything working, until I started changing the layout of the page.  If I put the upload_link anywhere inside a table, it stops working in IE8 - there is no Javascript error, the Open File dialog just doesn&#039;t appear.  No such problem in Firefox though.

Has anybody else had this problem, or does anybody have any suggestions?

Thanks</description>
		<content:encoded><![CDATA[<p>First, thanks for this great tutorial.</p>
<p>I had everything working, until I started changing the layout of the page.  If I put the upload_link anywhere inside a table, it stops working in IE8 &#8211; there is no Javascript error, the Open File dialog just doesn&#8217;t appear.  No such problem in Firefox though.</p>
<p>Has anybody else had this problem, or does anybody have any suggestions?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-3108</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Mon, 27 Jul 2009 11:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-3108</guid>
		<description>I forgot to ask:

a) How to save the thumb with the original name and
b) How to delete the large image from the server when saved the thumb.

Cheers,

Sergio</description>
		<content:encoded><![CDATA[<p>I forgot to ask:</p>
<p>a) How to save the thumb with the original name and<br />
b) How to delete the large image from the server when saved the thumb.</p>
<p>Cheers,</p>
<p>Sergio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-3107</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Mon, 27 Jul 2009 11:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-3107</guid>
		<description>@jesse

In the image_functions.php file, line 126:

imagejpeg($newImage,$thumb_image_name,90);

Cheers</description>
		<content:encoded><![CDATA[<p>@jesse</p>
<p>In the image_functions.php file, line 126:</p>
<p>imagejpeg($newImage,$thumb_image_name,90);</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Womack</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-3020</link>
		<dc:creator>James Womack</dc:creator>
		<pubDate>Wed, 22 Jul 2009 06:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-3020</guid>
		<description>Easy to implement and it works. Thank you!</description>
		<content:encoded><![CDATA[<p>Easy to implement and it works. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tal</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-2968</link>
		<dc:creator>Tal</dc:creator>
		<pubDate>Sun, 19 Jul 2009 08:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-2968</guid>
		<description>I love this script! But only one problem that I&#039;d appreciate any help that you can provide:
I&#039;m trying to set in &quot;index.php&quot; a dynamic condition, and in &quot;image_functions&quot;, based on this dynamic condition (simple &quot;if&quot; statement) I want to dynamically set the &quot;thumb_width&quot; an &quot;thumb_height&quot; variables.

Although it uploads the file successfully, It gives me errors after I try to crop and save the thumbnail:

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in .../image_functions.php on line 109

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in .../image_functions.php on line 124

Warning: imagepng(): supplied argument is not a valid Image resource in .../image_functions.php on line 136

Warning: chmod() [function.chmod]: No such file or directory in .../image_functions.php on line 139
success,upload_pic/resize_1247993414.png,upload_pic/thumbnail_1247993414.png


In index.php I put:
global $test;
$test=1;

In image_functions I put:
if($test==1){
		$thumb_width = &quot;100&quot;;						// Width of thumbnail image
		$thumb_height = &quot;100&quot;;						// Height of thumbnail image
}


Any help?</description>
		<content:encoded><![CDATA[<p>I love this script! But only one problem that I&#8217;d appreciate any help that you can provide:<br />
I&#8217;m trying to set in &#8220;index.php&#8221; a dynamic condition, and in &#8220;image_functions&#8221;, based on this dynamic condition (simple &#8220;if&#8221; statement) I want to dynamically set the &#8220;thumb_width&#8221; an &#8220;thumb_height&#8221; variables.</p>
<p>Although it uploads the file successfully, It gives me errors after I try to crop and save the thumbnail:</p>
<p>Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in &#8230;/image_functions.php on line 109</p>
<p>Warning: imagecopyresampled(): supplied argument is not a valid Image resource in &#8230;/image_functions.php on line 124</p>
<p>Warning: imagepng(): supplied argument is not a valid Image resource in &#8230;/image_functions.php on line 136</p>
<p>Warning: chmod() [function.chmod]: No such file or directory in &#8230;/image_functions.php on line 139<br />
success,upload_pic/resize_1247993414.png,upload_pic/thumbnail_1247993414.png</p>
<p>In index.php I put:<br />
global $test;<br />
$test=1;</p>
<p>In image_functions I put:<br />
if($test==1){<br />
		$thumb_width = &#8220;100&#8243;;						// Width of thumbnail image<br />
		$thumb_height = &#8220;100&#8243;;						// Height of thumbnail image<br />
}</p>
<p>Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-2470</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 03 Jul 2009 14:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-2470</guid>
		<description>Just thought I&#039;d share an issue I had in IE8 with this.

When preview(img, selection) is first called, the values for selection.width and selection.height are 0.

This results in it trying to set a css width of &quot;Infinitypx&quot;.

It only seems to be an issue in IE8, (and it only seems to be a problem for me, which makes me think I&#039;m doing something wrong) but if you&#039;re getting an error in IE8 you might want to check the values of selection.width and selection.height before using them to work out the scale.</description>
		<content:encoded><![CDATA[<p>Just thought I&#8217;d share an issue I had in IE8 with this.</p>
<p>When preview(img, selection) is first called, the values for selection.width and selection.height are 0.</p>
<p>This results in it trying to set a css width of &#8220;Infinitypx&#8221;.</p>
<p>It only seems to be an issue in IE8, (and it only seems to be a problem for me, which makes me think I&#8217;m doing something wrong) but if you&#8217;re getting an error in IE8 you might want to check the values of selection.width and selection.height before using them to work out the scale.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-2422</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 02 Jul 2009 08:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-2422</guid>
		<description>@Mancourt I have the same problem, you can&#039;t use an image either because the div hides it.</description>
		<content:encoded><![CDATA[<p>@Mancourt I have the same problem, you can&#8217;t use an image either because the div hides it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mancourt</title>
		<link>http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/comment-page-1/#comment-1809</link>
		<dc:creator>Mancourt</dc:creator>
		<pubDate>Mon, 15 Jun 2009 22:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/?p=550#comment-1809</guid>
		<description>Is it possible to make the upload button have a hand cursor to increase usability? I&#039;ve tried all sort of hacks but can&#039;t seem to be able to style that button... It seems like the script generates a div on top of the &quot;upload_link&quot; div... Any ideas?</description>
		<content:encoded><![CDATA[<p>Is it possible to make the upload button have a hand cursor to increase usability? I&#8217;ve tried all sort of hacks but can&#8217;t seem to be able to style that button&#8230; It seems like the script generates a div on top of the &#8220;upload_link&#8221; div&#8230; Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
