|
@@ -715,7 +715,7 @@
|
|
|
|
|
|
|
|
if (picker.sourceType == UIImagePickerControllerSourceTypePhotoLibrary) {
|
|
if (picker.sourceType == UIImagePickerControllerSourceTypePhotoLibrary) {
|
|
|
|
|
|
|
|
- UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
|
|
|
|
|
|
|
+ UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];
|
|
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
|
|
|
|
|
|
|
NSData *data = UIImageJPEGRepresentation(image, 1.0);
|
|
NSData *data = UIImageJPEGRepresentation(image, 1.0);
|