I am using canvas
to resize an image but resized image is low quality.Example is here
I searched on google but did not find any easy to understand and straight forward answer.
Please provide a working solution.
Here is my code
$(document).ready(function(){
var canvas2=document.getElementById("canvas1");
var ctx=canvas2.getContext("2d");
ctx.drawImage(document.getElementById("img1"),0,0,200,150);
});