Index: trunk/tools/WikiSnaps/Classes/SourcePickerViewController.m |
— | — | @@ -217,8 +217,12 @@ |
218 | 218 | UIImage *image = [info valueForKey:UIImagePickerControllerOriginalImage]; |
219 | 219 | |
220 | 220 | image = [image correctOrientation:image]; |
221 | | - UIImageWriteToSavedPhotosAlbum( image, nil, nil, nil ); |
222 | | - |
| 221 | + |
| 222 | + // Store the image on the Camera Roll |
| 223 | + if( picker.sourceType == UIImagePickerControllerSourceTypeCamera ) { |
| 224 | + UIImageWriteToSavedPhotosAlbum( image, nil, nil, nil ); |
| 225 | + } |
| 226 | + |
223 | 227 | // Prepare upload |
224 | 228 | CommonsUpload *ourUpload = [[CommonsUpload alloc] init]; |
225 | 229 | ourUpload.imageData = UIImageJPEGRepresentation(image, 0.85f); |