# Background image size error - Apple Silicon?

**URL:** https://discourse.processing.org/t/background-image-size-error-apple-silicon/47252
**Category:** Beginners
**Created:** [September 29, 2025, 7:09pm UTC](https://discourse.processing.org/t/background-image-size-error-apple-silicon/47252 "2025-09-29T19:09:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AaronQ](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AaronQ](https://discourse.processing.org/u/AaronQ)
#### Post date: [September 29, 2025, 7:09pm UTC](https://discourse.processing.org/t/background-image-size-error-apple-silicon/47252/1 "2025-09-29T19:09:11Z")

</div>

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](http://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?**

```auto
PImage bg;

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

void draw() {
  background(bg);
}

```

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [September 29, 2025, 7:59pm UTC](https://discourse.processing.org/t/background-image-size-error-apple-silicon/47252/2 "2025-09-29T19:59:25Z")

</div>

Hello,

Try this:

> [@Create PDF runtime error with v4.4.7](https://discourse.processing.org/t/create-pdf-runtime-error-with-v4-4-7/47174/7):
>
> Add pixelDensity(1) to your void setup(){ we’re adding a notice for that in 4.4.8!

Resolves a lot of issues.

`:)`

---

<div class="post-metadata">

### Author: ![AaronQ](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AaronQ](https://discourse.processing.org/u/AaronQ)
#### Post date: [September 29, 2025, 9:25pm UTC](https://discourse.processing.org/t/background-image-size-error-apple-silicon/47252/3 "2025-09-29T21:25:08Z")

</div>

> [@Create PDF runtime error with v4.4.7](https://discourse.processing.org/t/create-pdf-runtime-error-with-v4-4-7/47174/7):
>
> pixelDensity(1)

That worked!  
Thank you and very much appreciated!
