r84812 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84811‎ | r84812 | r84813 >
Date:19:08, 26 March 2011
Author:hartman
Status:deferred
Tags:
Comment:
Preserve an image to your camera roll when you take it.
Modified paths:
  • /trunk/tools/WikiSnaps/Classes/SourcePickerViewController.m (modified) (history)

Diff [purge]

Index: trunk/tools/WikiSnaps/Classes/SourcePickerViewController.m
@@ -217,7 +217,9 @@
218218 UIImage *image = [info valueForKey:UIImagePickerControllerOriginalImage];
219219
220220 image = [image correctOrientation:image];
 221+ UIImageWriteToSavedPhotosAlbum( image, nil, nil, nil );
221222
 223+ // Prepare upload
222224 CommonsUpload *ourUpload = [[CommonsUpload alloc] init];
223225 ourUpload.imageData = UIImageJPEGRepresentation(image, 0.85f);
224226

Status & tagging log