Hello,
When I create a canvas of 1200*627 and save it (saveCanvas or manually) the dimensions change to 2400 * 1254. I believe this didn’t occur before so I figured it must be something I’ve done that triggered this but with this simple example having the same effect I ran out of ideas.
Can anybody tell me why this is happening, did something change and/or how can I adjust this so that the dimensions stay the same.
If not any of above any information about this would be greatly appreciated.
index file:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <script src="https://cdn.jsdelivr.net/npm/p5@1.1.8/lib/p5.js"></script>
    <script src="sketch.js"></script>
    <title></title>
  </head>
  <body>
  </body>
</html>
sketch file:
function setup() {
  let c = createCanvas(1200, 627);
  background(220);
  saveCanvas(c, 'myCanvas', 'jpg');  
}
            
