title: How to reduce size of image display on UIImageView
body: <p>My problem is that, in my app I have <code>UIImageview</code>, <code>button1</code>, <code>button2</code>. <code>button1</code> is used to access images from saved photolibrary and button2 is used to store image in database,</p>
  
  <p>But image size is (800x800) which is very large, I want to store it at (50x50) size</p>
  
  <p>How to reduce size of image when button2 is clicked?</p>