<?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: UIImagePickerController cropRect seems to be useless?</title>
	<atom:link href="http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/</link>
	<description>Notes on iPhone, Flash and Web development</description>
	<lastBuildDate>Mon, 24 May 2010 15:05:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26815</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 20 Jun 2009 17:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26815</guid>
		<description>Thanks Brian! Downloading now... :)</description>
		<content:encoded><![CDATA[<p>Thanks Brian! Downloading now&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Stormont</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26814</link>
		<dc:creator>Brian Stormont</dc:creator>
		<pubDate>Sat, 20 Jun 2009 17:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26814</guid>
		<description>Hi, sorry for the delay - it seems weekends are the only free time I have lately for my hobby iPhone stuff.  The rest of the week is working on freelance iPhone dev projects.

Here&#039;s a link to a new blog post with link for Xcode project including sample ImagePicker class.

http://blog.stormyprods.com/2009/06/image-picker-sample.html</description>
		<content:encoded><![CDATA[<p>Hi, sorry for the delay &#8211; it seems weekends are the only free time I have lately for my hobby iPhone stuff.  The rest of the week is working on freelance iPhone dev projects.</p>
<p>Here&#8217;s a link to a new blog post with link for Xcode project including sample ImagePicker class.</p>
<p><a href="http://blog.stormyprods.com/2009/06/image-picker-sample.html" rel="nofollow">http://blog.stormyprods.com/2009/06/image-picker-sample.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26807</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Wed, 17 Jun 2009 02:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26807</guid>
		<description>That would be really awesome if you could share it :) Thanks! I just realized my email address isn&#039;t on here. I can be reached at gmail.com (bunnyhero) or wayne at bunnyherolabs.com.</description>
		<content:encoded><![CDATA[<p>That would be really awesome if you could share it :) Thanks! I just realized my email address isn&#8217;t on here. I can be reached at gmail.com (bunnyhero) or wayne at bunnyherolabs.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Stormont</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26806</link>
		<dc:creator>Brian Stormont</dc:creator>
		<pubDate>Wed, 17 Jun 2009 00:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26806</guid>
		<description>Yes, I&#039;m not using the image returned by the UIImagePickerController, I&#039;m using the crop info to re-crop the original image.  At least, that&#039;s what I remember.   I&#039;m pretty sure the image returned was lower res or was not full aspect ratio, so I didn&#039;t like it.   

It&#039;s been several months since I wrote the code (based on that code in the post from the Apple dev forums), so my memory is a little fuzzy, but you are welcome to have a copy.

The code should work on both 3.0 and 2.x.</description>
		<content:encoded><![CDATA[<p>Yes, I&#8217;m not using the image returned by the UIImagePickerController, I&#8217;m using the crop info to re-crop the original image.  At least, that&#8217;s what I remember.   I&#8217;m pretty sure the image returned was lower res or was not full aspect ratio, so I didn&#8217;t like it.   </p>
<p>It&#8217;s been several months since I wrote the code (based on that code in the post from the Apple dev forums), so my memory is a little fuzzy, but you are welcome to have a copy.</p>
<p>The code should work on both 3.0 and 2.x.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26804</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 13 Jun 2009 05:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26804</guid>
		<description>So your code is taking the original image and doing the crop itself? That is, not using the first image paramater that the UIImagePickerController sends you. If so, that&#039;s awesome. Is this on 3.0 or 2.x?</description>
		<content:encoded><![CDATA[<p>So your code is taking the original image and doing the crop itself? That is, not using the first image paramater that the UIImagePickerController sends you. If so, that&#8217;s awesome. Is this on 3.0 or 2.x?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Stormont</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26803</link>
		<dc:creator>Brian Stormont</dc:creator>
		<pubDate>Sat, 13 Jun 2009 05:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26803</guid>
		<description>You ever solve this problem?   I just tested your images with my code and best I can tell it appears to handle them properly.   My code is just trying to get the current crop of the selected photo and use it as a background image, so it&#039;s taking the cropped image and just redisplaying it on the screen.  From what I can see it look sto be doing it properly with your images.

Sorry for the delayed reply.  Been swamped with work all week.  Today&#039;s the first day this week where I wasn&#039;t working 15 hours a day.</description>
		<content:encoded><![CDATA[<p>You ever solve this problem?   I just tested your images with my code and best I can tell it appears to handle them properly.   My code is just trying to get the current crop of the selected photo and use it as a background image, so it&#8217;s taking the cropped image and just redisplaying it on the screen.  From what I can see it look sto be doing it properly with your images.</p>
<p>Sorry for the delayed reply.  Been swamped with work all week.  Today&#8217;s the first day this week where I wasn&#8217;t working 15 hours a day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26798</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 06 Jun 2009 20:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26798</guid>
		<description>Ok. Try any of the images here on an actual device and your ImagePicker code. I can&#039;t seem to figure out how iPhone decides what to use as the basis for its cropping rect.

http://www.bunnyhero.org/static/img/

(I just saved each image to my iPhone from Mobile Safari.)</description>
		<content:encoded><![CDATA[<p>Ok. Try any of the images here on an actual device and your ImagePicker code. I can&#8217;t seem to figure out how iPhone decides what to use as the basis for its cropping rect.</p>
<p><a href="http://www.bunnyhero.org/static/img/" rel="nofollow">http://www.bunnyhero.org/static/img/</a></p>
<p>(I just saved each image to my iPhone from Mobile Safari.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26797</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 06 Jun 2009 19:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26797</guid>
		<description>Hmm, it seems any 320x480 JPEG (rather than PNG) triggers the odd scaling of the cropRect. I&#039;m going to try some other sizes of JPEG.</description>
		<content:encoded><![CDATA[<p>Hmm, it seems any 320&#215;480 JPEG (rather than PNG) triggers the odd scaling of the cropRect. I&#8217;m going to try some other sizes of JPEG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26796</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 06 Jun 2009 18:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26796</guid>
		<description>Hmmm... interestingly, I just realized that the two images that were returning weird crop references were both created by the iPhone app &lt;a href=&quot;http://www.polka.com/#iffound&quot; rel=&quot;nofollow&quot;&gt;&quot;If Found+&quot;&lt;/a&gt; from Polka (although the newest version of the app instructs the user to take a screenshot, rather than saving it itself).

I wonder if I should just ignore that weird edge case.</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; interestingly, I just realized that the two images that were returning weird crop references were both created by the iPhone app <a href="http://www.polka.com/#iffound" rel="nofollow">&#8220;If Found+&#8221;</a> from Polka (although the newest version of the app instructs the user to take a screenshot, rather than saving it itself).</p>
<p>I wonder if I should just ignore that weird edge case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Stormont</title>
		<link>http://www.bunnyhero.org/2009/06/06/uiimagepickercontroller-croprect-seems-to-be-useless/comment-page-1/#comment-26795</link>
		<dc:creator>Brian Stormont</dc:creator>
		<pubDate>Sat, 06 Jun 2009 18:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/?p=190#comment-26795</guid>
		<description>Here&#039;s what I was able to figure out.  I&#039;m not 100% certain this is correct, but seems to match all the test images I tried:

The crop rectangle returned has been scaled relative to the image being 480x640 regardless of the real image dimensions.  And, to make matters worse, it&#039;s a virtual 320x320 square centered on the screen rather than being the whole screen.    So, we need to rescale the crop rectangle so it matches the original image resolution and so it&#039;s the full screen.

I have an ImagePicker class I created that might help.  If you&#039;d like I can share the code with you.   I&#039;d be curious if it handles the problems you are seeing.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s what I was able to figure out.  I&#8217;m not 100% certain this is correct, but seems to match all the test images I tried:</p>
<p>The crop rectangle returned has been scaled relative to the image being 480&#215;640 regardless of the real image dimensions.  And, to make matters worse, it&#8217;s a virtual 320&#215;320 square centered on the screen rather than being the whole screen.    So, we need to rescale the crop rectangle so it matches the original image resolution and so it&#8217;s the full screen.</p>
<p>I have an ImagePicker class I created that might help.  If you&#8217;d like I can share the code with you.   I&#8217;d be curious if it handles the problems you are seeing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
