I\'m trying to create a thumbnail image on the client side using javascript and a canvas element, but when I shrink the image down, it looks terrible. It looks as if it was
Looking for another great simple solution?
var img=document.createElement('img'); img.src=canvas.toDataURL(); $(img).css("background", backgroundColor); $(img).width(settings.width); $(img).height(settings.height);
This solution will use the resize algorith of browser! :)