title: Compression Ratio calculation
body: <p>I am doing image compression but I am finding hard time caclulating the compression ratio of the decoded image. </p>
  
  <p>I thought it was calculated as </p>
  
  <pre><code>CR = Size of decoded image/ size of original image 
  </code></pre>
  
  <p>but am being told it is wrong. </p>
  
  <p>Can someone please correct me on this.</p>
  
  <p>And for the bit/pixel, is it also calculated as;</p>
  
  <pre><code>bpp= 8/CR ??
  </code></pre>
  
  <p>Please guide me.</p>