UIImageWriteToSavedPhotosAlbum saves to wrong size and quality
<p>I'm trying to take a screen shot of my app's current view and save it to photo album (to then be emailed or MMS'ed). </p>

<pre><code>UIGraphicsBeginImageContext(self.view.bounds.size); 

[self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; 

UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

UIImageWriteToSavedPhotosAlbum(viewImage, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil);
</code></pre>

<p>This works but the resulting image apears to be larger (533x800px) and heavily compressed when I email it from the photo library.</p>

<p>I've tried first writing the UIImage to file and then saving to album but still get the same issue. </p>

<p>If I used the in-built screenshot functionality on the iPhone the view saves correctly to photo album at 320x480 but the above code appears to save a larger image for some reason?</p>

<p>Thanks!</p>
