We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d99b7 commit 31599efCopy full SHA for 31599ef
src/screenshot_resizer/index.js
@@ -3,6 +3,7 @@ function nearestNeighborScale(image, width, height) {
3
canvas.width = width;
4
canvas.height = height;
5
const ctx = canvas.getContext('2d');
6
+ ctx.imageSmoothingEnabled = false;
7
ctx.drawImage(image, 0, 0, width, height);
8
return canvas;
9
}
0 commit comments