JAI (Java Advanced Imaging) support was added in Gallery Mage version 2.5. This document describes how to install JAI and make the most of this feature.
JAI provides an alternative way of processing images which is much faster. It is enabled by default, but JAI must be installed separately for it to be used. If JAI cannot be used, Gallery Mage falls back on a backup processing method.
Linux, Windows, Solaris
To download JAI for Linux, Windows or Solaris, visit the Sun JAI download page.
NB. Java should be installed before JAI.
NB. This page may be a little confusing. Most people will want the version for their operating system marked 'jre'.
For Windows, it is: jai-1_1_3-lib-windows-i586-jre.exe
Mac OS X
Mac users can download and install JAI at the Apple JAI download page.
Verifying Installation
If JAI is setup correctly, the following text is output to the Gallery Mage output window (in the main application, below the thumbnail images):
- Code: Select all
Using JAI
If JAI is not setup correctly, the following text is output to the Gallery Mage output window:
- Code: Select all
NOT using JAI! To improve performance, install JAI (http://tanksoftware.com/gallmage/jai)
If Gallery Mage is not using JAI, it is probably not installed correctly - see the above instructions for how to install. If JAI is installed, the other possability is that JAI has been explicitly disabled. You can verify this by editing 'conf/gallmage.ini' (in your Gallery Mage installation directory). If there is a statement:
- Code: Select all
UseJAI=false
Change it to
- Code: Select all
UseJAI=true
If there is no 'UseJAI' option, then by default it is enabled. To be sure, you can add the statement 'UseJAI=true'.
Tech info: JAI is much faster than Java's in-built ImageIO due to it's use of native code where possible.
