1. How can we convert .heif file in to .jpeg file format in iOS11.0+ through coding in Objective C. 2. Is to possible to restrict ImagePickerController to take Photos in 'Compatible Format' through coding in my app i.e by ignoring the Settings. 3. Suppose if the Settings format in the device is 'High Efficiency' how can we get the JPEG image in the UIImagePickerController delegate method of taking the picture : - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info;
How can we convert .heif file in to .jpeg file format through coding in ObjectiveC
I'm actually a Xamarin developer but i was looking like crazy for information about it and I didn't find anything clear enough. But at the end I discover the way to do it, you have to call
requestImageForAsset and then in the resultHandler you are going to get an UIImage object and then you can call a method called UIImageJPEGRepresentation that method is going to return a NSData object with the JPG image. I don't know if the best way to do it but it works for me.Also a recommendation is when you call requestImageForAsset, call it asynchronously.