Background image size error - Apple Silicon?

Hello.

I have recently installed Processing4.4.7 on MacOS15.6.1 running Apple Silicon.
I have used other versions of Processing on Mac Intel before.
I have confirmed the code below works successfully on Processing4.4.7 on Windows.
This is the code from the Processing.org examples.

All programs that I run with a background image are generating the following error. RuntimeException: background image must be the same size as your application

Is this an isolated problem for the OS version I’m running?

PImage bg;

void setup() {
  size(640, 360);
  bg = loadImage("moonwalk.jpg");
  //bg.resize(640, 360);
}

void draw() {
  background(bg);
}

Hello,

Try this:

Resolves a lot of issues.

:)

1 Like

That worked!
Thank you and very much appreciated!

1 Like