草庐IT

contentEditingInput

全部标签

ios - Swift:HEIC 图像的 PHAssetChangeRequest 失败

我想对图库中的图像(由iPhone相机拍摄)执行编辑,例如JEPG压缩,但当输入图像是HEIC图像,但适用于JPEG图像。我通过UIImagePickerController方法在PHAsset对象中检索图像:funcimagePickerController(_picker:UIImagePickerController,didFinishPickingMediaWithInfoinfo:[UIImagePickerController.InfoKey:Any]){ifletasset=info[UIImagePickerController.InfoKey.phAsset]as?P