jjzjj

objective-c - 为什么 [uiimagePickerController 允许编辑 :YES] substantially reduce the photo resolution from the camera?

coder 2024-01-27 原文

我正在使用 UIImagePickerController 通过我的应用拍照。如果我使用默认

[imagePickerController setAllowsEditing:NO];

然后生成的照片具有全分辨率 2592x1936(以及许多兆字节)。但是,如果我使用

打开编辑
[imagePickerController setAllowsEditing:YES];

最后的照片只有 640x640(小于 1 兆字节)。

为什么会这样?有什么方法可以提高编辑后照片的质量?

最佳答案

您应该从中获取高分辨率图像

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
         [info objectForKey:UIImagePickerControllerOriginalImage]
         [info objectForKey:UIImagePickerControllerEditedImage]
.... 
}

关于objective-c - 为什么 [uiimagePickerController 允许编辑 :YES] substantially reduce the photo resolution from the camera?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9204200/

有关objective-c - 为什么 [uiimagePickerController 允许编辑 :YES] substantially reduce the photo resolution from the camera?的更多相关文章

随机推荐