Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Revert DPI fix since it caused more issues than it solved.

comfyanonymous4796e615dd7f
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 514ca3958..97b7c8d31 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -921,9 +921,8 @@ export class ComfyApp {
this.graph.start();
function resizeCanvas() {
- canvasEl.width = canvasEl.offsetWidth * window.devicePixelRatio;
- canvasEl.height = canvasEl.offsetHeight * window.devicePixelRatio;
- canvasEl.getContext("2d").scale(window.devicePixelRatio, window.devicePixelRatio);
+ canvasEl.width = canvasEl.offsetWidth;
+ canvasEl.height = canvasEl.offsetHeight;
canvas.draw(true, true);
}