在我的应用中,我可以让用户在上传之前编辑照片。我的问题是,为什么在使用UIImagePickerControllerEditedImage
时我们会以低质量拍摄照片?
我搜索了这个问题而我没有找到答案check here this question,我确信照片质量很高,而且我没有按照该链接中的说明进行裁剪或缩放。
当我使用UIImagePickerControllerOriginalImage
时,我会根据拍摄的质量拍摄照片。
这是我的代码
- (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
.
.
}
有什么想法吗?
另一个问题可确保EditedImage here
出现问题