diff --git a/editor_new/sketch.js b/editor_new/sketch.js index 4e9cce7d..6de6e1e2 100644 --- a/editor_new/sketch.js +++ b/editor_new/sketch.js @@ -29,6 +29,8 @@ function toggleFullscreen() { function loadImg(text) { // Loads the image from the URL img = loadImage(text); + imgWidth = img.width; + imgHeight = img.height; } function setup() {