title: how to avoid background for an image which is selected from photo gallery or captured from Camera in ios?
body: <p><img src="https://i.stack.imgur.com/jq6Bb.jpg" alt="enter image description here"></p>
  
  <p>I need to get only the selected image without background , we are trying to avoid the back ground and we need selected part should only cropped. and how to change the pixel data on tap selection of image color.</p>
  
  <p>OR can we do like this:</p>
  
  <p>Before crop:</p>
  
  <p><img src="https://i.stack.imgur.com/rbSbl.png" alt="enter image description here"></p>
  
  <p>After crop:</p>
  
  <p><img src="https://i.stack.imgur.com/iycHd.png" alt="enter image description here"></p>