You must create a .png image of ~ 20k size using an HTML5 canvas. Unfortunately, when creating .png using the toDataURL () method, you cannot specify quality as you can with jpeg.
Any ideas for a workaround? toDataURL seems to be the only way to generate images from Canvas, and the canvas seems to be the best tool for processing images without interacting with the server. Appreciate any suggestions.
source share