# Reference documentation code example glitch for PImage.height

**URL:** <https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625>\
**Category:** Beginners\
**Created:** [January 20, 2025, 3:19pm UTC](https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625 "2025-01-20T15:19:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuddyGardener](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/muddygardener/32/1719_2.png) [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Post date:** [January 20, 2025, 3:19pm UTC](https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625/1 "2025-01-20T15:19:15Z")

</div>

Strangely enough, the code example given in reference section for Pimage\_height doesn’t have any mention at all of height in it. Should I report this via GitHib?

```auto
PImage photo;

void setup() {
  size(400, 400);
  photo = loadImage("mt-horai.jpg");
}

void draw() {
  image(photo, 0, 0);
}

```

from:

> **[PImage::height / Reference](https://processing.org/reference/pimage_height)**
>
> The height of the image in units of pixels.

---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [January 21, 2025, 12:03pm UTC](https://discourse.processing.org/t/reference-documentation-code-example-glitch-for-pimage-height/45625/2 "2025-01-21T12:03:13Z")

</div>

> [@MuddyGardener](#):
>
> Strangely enough, the code example given in reference section for Pimage\_height doesn’t have any mention at all of height in it. Should I report this via GitHib?

Good catch!

Yes please do submit a GitHub issue on the processing-website repository using the following link: [report a content error](https://github.com/processing/processing-website/issues/new?template=2_content_error.yml).

Note: the file for the `PImage.height` example is found here:

> <https://github.com/processing/processing-website/blob/main/content/references/examples/processing/PImage_height/PImage_height.pde>
