Target width:
Original, img tag

Canvas, imageSmoothingQuality = 'high'

WASM