If I save an image to the photo roll with the methods I know ( UIImageWriteToSavedPhotosAlbum() and [PHAssetChangeRequest creationRequestForAssetFromImage:img] ) a subsequent choosing of the saved photo with the UIImagePickerController gives me a .jpg image.
info[UIImagePickerControllerReferenceURL] gives assets-library://asset/asset.JPG?id=B8B231DC-3A84-4F65-AD5E-D6C431CB5F8B&ext=JPG
and
[((PHAsset*)info[UIImagePickerControllerPHAsset]) valueForKey:@"filename"] gives me @"IMG_5512.JPG" for example.
However if I shoot a photo with the "Camera" app, that photo chosen with UIImagePickerController has the HEIC extension (given that the "High Efficiency" setting is effective in the "Camera" settings).
So what is a convenient way to save in HEIC format to the photo roll in response to
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
?