# Load 16 bit per pixel PNG image

**URL:** https://discourse.processing.org/t/load-16-bit-per-pixel-png-image/13221
**Category:** Coding Questions
**Created:** [August 6, 2019, 11:39pm UTC](https://discourse.processing.org/t/load-16-bit-per-pixel-png-image/13221 "2019-08-06T23:39:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nikolai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nikolai/32/6023_2.png) [@Nikolai](https://discourse.processing.org/u/Nikolai)
#### Post date: [August 6, 2019, 11:39pm UTC](https://discourse.processing.org/t/load-16-bit-per-pixel-png-image/13221/1 "2019-08-06T23:39:24Z")

</div>

I need to load a 16 bit per pixel PNG image and save it as 8 bit (with some processing done on the channels). How can I do this in processing. Any image that I load only has 8 bit depth (even if I crank up the colorMode to 65,536).  
Is there some other way to access 16 bit pixel info other than PImage available?

Any help greatly appreciated!

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [August 6, 2019, 11:57pm UTC](https://discourse.processing.org/t/load-16-bit-per-pixel-png-image/13221/2 "2019-08-06T23:57:48Z")

</div>

I believe that you could use java.awt.image.BufferedImage – although I haven’t done it myself, I recall past forum posts on it.

[https://discourse.processing.org/search?context=topic&context\_id=13221&q=java.awt.image.BufferedImage&skip\_context=true](https://discourse.processing.org/search?context=topic&context_id=13221&q=java.awt.image.BufferedImage&skip_context=true)
