title: Resize UIImage by keeping Aspect ratio and width
body: <p>I seen in many posts for resizing the image by keeping aspect ratio. These functions uses the fixed points(Width and Height) for RECT while resizing. But in my project, I need to resize the view based on the Width alone, Height should be taken automatically based on the aspect ratio.
  anyone help me to achieve this.</p>