I've loaded my images to canvas to manipulate them at pixel level.
However, the best practice I can find is to set canvas size like this:
<canvas id=c width=800 height=600></canvas>
But when I control the canvas dimension with css like
I found that the image quality is different and much worst.
How do I keep the image quality with css as I need my website to be responsive.