ios - UIImagePickerControllerOriginalImage returns nil only on RAW images -


i'm having issue whereby images taken sony digital camera , transferred phone return nil when try save image in didfinishpickingmediawithinfo. returns image image taken on iphone or downloaded internet. why , can fix it?

allowsediting set false.

   func imagepickercontroller(picker: uiimagepickercontroller, didfinishpickingmediawithinfo info: [nsobject : anyobject]) {       dismissviewcontrolleranimated(true, completion: nil) //5      var chosenimage = info[uiimagepickercontrolleroriginalimage] as? uiimage //2      let previewvc:imagepreviewviewcontroller = self.storyboard?.instantiateviewcontrollerwithidentifier("previewvc") as! imagepreviewviewcontroller     previewvc.imagetocrop = chosenimage!     self.navigationcontroller?.pushviewcontroller(previewvc, animated: true)  } 

update discovered issue relates icloud photo library sync , selected raw image (.arw) instead of jpeg. raw images return nil


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -