title: how to compress image same as Whatsapp
body: <p>I am working on an app.</p>
  
  <p>In which I need to compress image same as Whatsapp does in their app.</p>
  
  <p>I have tried with many solutions such as:</p>
  
  <p><a href="https://stackoverflow.com/questions/26928597/image-compression-like-whatsapp-and-other-messengers-on-android">Image compression like Whatsapp and other messengers on Android</a></p>
  
  <ul>
  <li><p><a href="http://voidcanvas.com/whatsapp-like-image-compression-in-android/" rel="nofollow noreferrer">http://voidcanvas.com/whatsapp-like-image-compression-in-android/</a></p></li>
  <li><p><a href="https://gist.github.com/akshay1188/4749253" rel="nofollow noreferrer">https://gist.github.com/akshay1188/4749253</a></p></li>
  <li><p><a href="https://www.built.io/blog/2013/03/improving-image-compression-what-weve-learned-from-whatsapp/" rel="nofollow noreferrer">https://www.built.io/blog/2013/03/improving-image-compression-what-weve-learned-from-whatsapp/</a></p></li>
  </ul>
  
  <p>I have followed all the solutions above which is not generating the perfect result as Whatsapp does.</p>
  
  <p>The size is different from Whatsapp after compressing.</p>
  
  <p>Is their any other solutions that do exact the same compress algorithm from Whatsapp.</p>
  
  <p>Any help will be greatly appreciated.</p>