title: UIImagePickerController crash when trying to select panoramic image from phone library
body: <p>I am trying to select an image from device library using the UIImagePickerController all things works well unless i pick a very huge image ( a panoramic image) the app crash without giving any trace. I think it is a memory issue ( i noticed that the memory usage is increasing to 600m). So my question is can i specify an image size as a filter ? or should i create my custom image picker ? also i tested the same image using facebook and twitter image picker : twitter fail ...</p>
  
  <p>my code launch the image picker is :</p>
  
  <pre><code>var picker = UIImagePickerController()
  picker.delegate = self
  picker.sourceType = .PhotoLibrary
  presentViewController(self.picker, animated: true, completion: nil)
  </code></pre>
  
  <p>and capturing the selected image :</p>
  
  <pre><code>extension MYViewController : UIImagePickerControllerDelegate,UINavigationControllerDelegate{
      func imagePickerController(
      picker: UIImagePickerController,
      didFinishPickingMediaWithInfo info: [String : AnyObject])
      {
          print("user did select an image")
          let chosenImage = info[UIImagePickerControllerOriginalImage] as! UIImage
  
          dismissViewControllerAnimated(true, completion: nil)
  
      }
      func imagePickerControllerDidCancel(picker: UIImagePickerController) {
          //do code when cancel
          print("cancel ...")
          userDidCancelImageChoosing = true
          dismissViewControllerAnimated(true, completion: nil)
      }
  }
  </code></pre>
  
  <p><strong>edit</strong>: I checked the question of video duration but is not what I need we don't have the same problem, Here I talk about selecting image from the image picker you can try in the twitter app and attach a panoramic HQ image with huge size. The question suggested talk about limiting record video duration.  </p>