Java Advanced Imaging is an optional library produced by Sun to offer additional ‘advanced’ support for building image handling tools in Java. In particular it offers 3 key features:-
1. Improved Performance. As well as having hardware acceleration it was optimised to only perform operations when they were needed.
2. Better memory usage. JAI offers additional Image types to BufferedImage and the tiled image is able to avoid loading all the image data into memory. If you are dealing with huge images this is a bit advantage.
3. Improved Tiff support. The support for TIFF images is much better in JAI than in ImageIO. Annoyingly the both have their own strengths (the Tiff format is like the PDF not strictly adhered to so you meet loads of ‘odd’ files). It can also create Tiffs containing multiple images.
It looks like JAI is no longer being developed but it does still offer these advantages. We use it in our PDF library to improve support for TIFF files. What do you use it for?
Latest posts by Mark Stephens (see all)
- Which version of Java SE should I use? - April 25, 2018
- How we are improving our code quality with IDEA in 2018 - March 7, 2018
- How we are improving our code quality with NetBeans in 2018 - March 1, 2018
- 3 ways that the European Union is changing the way Companies write software in 2018 - January 31, 2018
- IDRsolutions product range update for 2018 - January 22, 2018