// If you're upscaling and image and its looking blurry, change this ctx value ctx.imageSmoothingEnabled = false;