title: How to predict image size in megabytes after JPEG-compression
body: <p>For example, we have file.jpg with size 5Mb. And our aim is to compress it to size 2Mb. There is souch methodin SDK: Bitmap.compress(Bitmap.CompressFormat format, int quality, OutputStream stream).</p>
  
  <p>Is there any variant to calculate target quality value before compression?</p>