Problem with UIImagePickerControllerEditedImage: Decreased Image Quality

In my application, I give the user the ability to edit photos before uploading them. My question is: why do we get low quality photos when using UIImagePickerControllerEditedImage ?

I was looking for this problem, and I did not find the answer here, this question , and I am sure that the photo is of high quality, and I will not learn or scale it as described in this link.

When I use UIImagePickerControllerOriginalImage , I get photos with the quality with which they were taken.

Here is my code

 - (void)imagePickerController:(UIImagePickerController *) Picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *originalImage, *editedImage, *pickedImage; editedImage = (UIImage *) [info objectForKey:UIImagePickerControllerEditedImage]; originalImage = (UIImage *) [info objectForKey:UIImagePickerControllerOriginalImage]; if (editedImage) pickedImage = editedImage; else pickedImage = originalImage; if (Picker.sourceType == UIImagePickerControllerSourceTypeCamera ) { UIImageWriteToSavedPhotosAlbum(pickedImage, self, nil, nil); } pickedImage = [pickedImage fixOrientation]; . //Additional steps . . } 

Any idea?

Another question ensures there is a problem with EditedImage here

+4
source share

Source: https://habr.com/ru/post/1484428/


All Articles