# Requirements that Processing has for loading TIFF files

**URL:** <https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281>\
**Category:** Coding Questions\
**Created:** [April 1, 2020, 12:24pm UTC](https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281 "2020-04-01T12:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [April 1, 2020, 7:33pm UTC](https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281/12 "2020-04-01T19:33:26Z")

</div>

If you want to add TIFF-loading support to your sketch, it looks like the missing resource is JAI 1.1, which for Java 8 adds TIFF support to imageio.

1. create a /code subfolder in your sketch, and add `jai_imageio-1.1.jar`
2. add a TIFF file to the sketch folder: `test.tif`
3. run a sketch that uses the protected undocumented `loadImageIO` method of Processing’s PApplet:

```auto
PImage img;
 
void setup() {
  size(484, 480);
  background(128);
  img = this.loadImageIO("test.tif");
  image(img, 0, 0);
}

```

Your TIFF is loaded as a PImage and displayed.

Note that without JAI the default loadImageIO of Java 8 (used by Processing 3) does not have TIFF support. In Java 9+ this is not true.

FYI, JAI was added to the Processing MovieMaker tool ~2013 for just this reason:

> <https://github.com/processing/processing/commit/ee8594558450cafc655af1daed0149a8adeca816>

…and so `jai_imageio.jar` is part of the Processing 3 source under tools

- [https://github.com/processing/processing/tree/master/build/shared/tools/MovieMaker/tool](https://github.com/processing/processing/tree/master/build/shared/tools/MovieMaker/tool)

…just not automatically on the path of PApplet (not available by default to a sketch).

---

_[View the full topic](https://discourse.processing.org/t/requirements-that-processing-has-for-loading-tiff-files/19281)._
