title: Canvas as string with maximum compression?
body: <p>I have a PNG image and got its Base64 PNG string representation. It's still quite large and i'd like to know if it can be significantly further compressed. Is that even possible?</p>
  
  <p>Background</p>
  
  <p>I am using html2canvas to create a screenshot of the current web page, convert it as base64 (using canvas.toDataURL())string and send that to server.But if that string size is too large, the server returns an Exception.</p>
  
  <p>What is the most efficient way of compressing the canvas in the form of string?</p>
  
  <p>Any help is highly appreciated.
  Thanks in advance.</p>