<?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: PHP &amp; jQuery image upload and crop v1.2</title>
	<atom:link href="http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/</link>
	<description>Web Design/Development, Marketing, Communication and E-Solutions</description>
	<lastBuildDate>Mon, 23 Aug 2010 02:36:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matthew</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7466</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Tue, 10 Aug 2010 01:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7466</guid>
		<description>Awesome script, easy to use and easy to understand. Well done - thank you!</description>
		<content:encoded><![CDATA[<p>Awesome script, easy to use and easy to understand. Well done &#8211; thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chan</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7232</link>
		<dc:creator>Chan</dc:creator>
		<pubDate>Sat, 03 Jul 2010 06:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7232</guid>
		<description>I&#039;m also having problems in IE. The cropping rectangle does not appear by default in IE even though it is set to appear and works fine in Firefox. I&#039;ve found that refreshing the browser can suddenly make it appear in IE!</description>
		<content:encoded><![CDATA[<p>I&#8217;m also having problems in IE. The cropping rectangle does not appear by default in IE even though it is set to appear and works fine in Firefox. I&#8217;ve found that refreshing the browser can suddenly make it appear in IE!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chan</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7231</link>
		<dc:creator>Chan</dc:creator>
		<pubDate>Sat, 03 Jul 2010 06:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7231</guid>
		<description>Hi,
My goal is to have a default selection box (dotted rectangle) visible when the user uploads an image, and have the thumbnail preview show the default selected area by default. I want to size the default selection as a square, with a side being equal to the shorter of the length and width of the original image.

I&#039;m able to create this default selection correctly. However the thumbnail preview does not show this by default. It shows the top left portion of the original image (100px * 100px). 

If I use my mouse to click on the selection and move it around, as soon as I move it the preview &quot;snaps&quot; to correctly show the selected area. From this point on it works as expected. So my only issue is getting the default preview to accurately reflect the default selection.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
My goal is to have a default selection box (dotted rectangle) visible when the user uploads an image, and have the thumbnail preview show the default selected area by default. I want to size the default selection as a square, with a side being equal to the shorter of the length and width of the original image.</p>
<p>I&#8217;m able to create this default selection correctly. However the thumbnail preview does not show this by default. It shows the top left portion of the original image (100px * 100px). </p>
<p>If I use my mouse to click on the selection and move it around, as soon as I move it the preview &#8220;snaps&#8221; to correctly show the selected area. From this point on it works as expected. So my only issue is getting the default preview to accurately reflect the default selection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Sefton</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7215</link>
		<dc:creator>Jim Sefton</dc:creator>
		<pubDate>Tue, 29 Jun 2010 12:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7215</guid>
		<description>Thanks for this great script. I am having a small problem where I can&#039;t upload jpeg images. If I add the mime types and extension for jpeg then it works but I cant then upload jpg files. Please can someone point me in the right direction?

Thanks :D</description>
		<content:encoded><![CDATA[<p>Thanks for this great script. I am having a small problem where I can&#8217;t upload jpeg images. If I add the mime types and extension for jpeg then it works but I cant then upload jpg files. Please can someone point me in the right direction?</p>
<p>Thanks <img src='http://www.webmotionuk.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieter</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7189</link>
		<dc:creator>Pieter</dc:creator>
		<pubDate>Sun, 20 Jun 2010 17:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7189</guid>
		<description>Hi there,

currently using this wonderful script.

how can i make it work with jpg and jpeg.

If i change line 44 as above it only allows jpeg

All the best from Holland</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>currently using this wonderful script.</p>
<p>how can i make it work with jpg and jpeg.</p>
<p>If i change line 44 as above it only allows jpeg</p>
<p>All the best from Holland</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7187</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 19 Jun 2010 20:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7187</guid>
		<description>What do you do if the image the person uploads is a wide rectangle, but the marquee is a square.  Then the user can only upload a small part of the original image.  Can you make it so their is white around the image or something to allow the user to select some white and some of the rest of the image in order to get more of the image but keep the dimension proportional?

Steve</description>
		<content:encoded><![CDATA[<p>What do you do if the image the person uploads is a wide rectangle, but the marquee is a square.  Then the user can only upload a small part of the original image.  Can you make it so their is white around the image or something to allow the user to select some white and some of the rest of the image in order to get more of the image but keep the dimension proportional?</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forty</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7105</link>
		<dc:creator>Forty</dc:creator>
		<pubDate>Sat, 05 Jun 2010 17:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7105</guid>
		<description>Hi, I can&#039;t figure out where I can set the thumbnail size. 
these are my values for thumb width &amp; height:

$thumb_width = &quot;250&quot;; $thumb_height = &quot;265&quot;; 

the preview is absolutely fine but the uploaded thumb has a width of 100px and a height of 106px ... so the ratio is fine, but how can I manage it to get a width and height of 250x265px?

I&#039;ve tried to set the values here:
$cropped = resizeThumbnailImage($thumb_image_location, $large_image_location,250,256,$x1,$y1,$scale);

but nothing changed ... so where can I set the final width &amp; height of the thumb?

THX!
Forty</description>
		<content:encoded><![CDATA[<p>Hi, I can&#8217;t figure out where I can set the thumbnail size.<br />
these are my values for thumb width &amp; height:</p>
<p>$thumb_width = &#8220;250&#8243;; $thumb_height = &#8220;265&#8243;; </p>
<p>the preview is absolutely fine but the uploaded thumb has a width of 100px and a height of 106px &#8230; so the ratio is fine, but how can I manage it to get a width and height of 250x265px?</p>
<p>I&#8217;ve tried to set the values here:<br />
$cropped = resizeThumbnailImage($thumb_image_location, $large_image_location,250,256,$x1,$y1,$scale);</p>
<p>but nothing changed &#8230; so where can I set the final width &amp; height of the thumb?</p>
<p>THX!<br />
Forty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmotionuk</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7016</link>
		<dc:creator>webmotionuk</dc:creator>
		<pubDate>Wed, 19 May 2010 07:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7016</guid>
		<description>On line 44 where it has 

&lt;strong&gt;$allowed_image_types = array(&#039;image/pjpeg&#039;=&gt;&quot;jpg&quot;,&#039;image/jpeg&#039;=&gt;&quot;jpg&quot;,&#039;image/jpg&#039;=&gt;&quot;jpg&quot;,&#039;image/png&#039;=&gt;&quot;png&quot;,&#039;image/x-png&#039;=&gt;&quot;png&quot;,&#039;image/gif&#039;=&gt;&quot;gif&quot;);&lt;/strong&gt;

replace it with

&lt;strong&gt;$allowed_image_types = array(&#039;image/pjpeg&#039;=&gt;&quot;jpg&quot;,&#039;image/jpeg&#039;=&gt;&quot;jpg&quot;,&#039;image/jpg&#039;=&gt;&quot;jpg&quot;,&#039;image/pjpeg&#039;=&gt;&quot;jpeg&quot;,&#039;image/jpeg&#039;=&gt;&quot;jpeg&quot;,&#039;image/jpg&#039;=&gt;&quot;jpeg&quot;,&#039;image/png&#039;=&gt;&quot;png&quot;,&#039;image/x-png&#039;=&gt;&quot;png&quot;,&#039;image/gif&#039;=&gt;&quot;gif&quot;);&lt;/strong&gt;

Notice the inclusion of the mime type and the jpeg suffix, This should fix your problem.</description>
		<content:encoded><![CDATA[<p>On line 44 where it has </p>
<p><strong>$allowed_image_types = array(&#8216;image/pjpeg&#8217;=>&#8221;jpg&#8221;,&#8217;image/jpeg&#8217;=>&#8221;jpg&#8221;,&#8217;image/jpg&#8217;=>&#8221;jpg&#8221;,&#8217;image/png&#8217;=>&#8221;png&#8221;,&#8217;image/x-png&#8217;=>&#8221;png&#8221;,&#8217;image/gif&#8217;=>&#8221;gif&#8221;);</strong></p>
<p>replace it with</p>
<p><strong>$allowed_image_types = array(&#8216;image/pjpeg&#8217;=>&#8221;jpg&#8221;,&#8217;image/jpeg&#8217;=>&#8221;jpg&#8221;,&#8217;image/jpg&#8217;=>&#8221;jpg&#8221;,&#8217;image/pjpeg&#8217;=>&#8221;jpeg&#8221;,&#8217;image/jpeg&#8217;=>&#8221;jpeg&#8221;,&#8217;image/jpg&#8217;=>&#8221;jpeg&#8221;,&#8217;image/png&#8217;=>&#8221;png&#8221;,&#8217;image/x-png&#8217;=>&#8221;png&#8221;,&#8217;image/gif&#8217;=>&#8221;gif&#8221;);</strong></p>
<p>Notice the inclusion of the mime type and the jpeg suffix, This should fix your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-7012</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Tue, 18 May 2010 23:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-7012</guid>
		<description>This fails in the case of image/jpeg, because $file_ext is then jpeg and $ext is jpg, so an error occurs...

187                         //loop through the specified image types and if they match the extension then break out
188                         //everything is ok so go and check file size
189                         if($file_ext==$ext &amp;&amp; $userfile_type==$mime_type){</description>
		<content:encoded><![CDATA[<p>This fails in the case of image/jpeg, because $file_ext is then jpeg and $ext is jpg, so an error occurs&#8230;</p>
<p>187                         //loop through the specified image types and if they match the extension then break out<br />
188                         //everything is ok so go and check file size<br />
189                         if($file_ext==$ext &amp;&amp; $userfile_type==$mime_type){</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide</title>
		<link>http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/comment-page-2/#comment-6924</link>
		<dc:creator>Davide</dc:creator>
		<pubDate>Sun, 02 May 2010 16:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/#comment-6924</guid>
		<description>Hi!nice work!

i&#039;ve some trouble:the behavior of the script is random, somtimes it works, sometimes it just upload the photo without let me crop it.

Any guess?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi!nice work!</p>
<p>i&#8217;ve some trouble:the behavior of the script is random, somtimes it works, sometimes it just upload the photo without let me crop it.</p>
<p>Any guess?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

