title: Compress Image size or Reduce Dimensions of the captured Image
body: <p>How can I compress image size or reduce the dimensions of  the photo which is captured from my windows phone ? 
  I use the following lines of code for photo capturing
  The captured image size is too large; always more than 2MB and dimensions more 2000 X 2000...........
  I want to reduce either of the two.....and save it in my SQlite Database.</p>
  
  <pre><code>private async void CaptureBtn_Click(object sender, RoutedEventArgs e)
  {
       file = await ApplicationData.Current.LocalFolder.CreateFileAsync("AttendanceImage.jpg",CreationCollisionOption.ReplaceExisting);
       await mediaCapture.CapturePhotoToStorageFileAsync(Windows.Media.MediaProperties.ImageEncodingProperties.CreateJpeg(), file);
  }
  </code></pre>