Running jp2kencode 1. If calling jp2kencode from a different directory, edit jp2kencode.sh and set INSTALL_DIR to the path of the installation directory. 2. This tool will only work with java version 1.4 or higher. Make sure 'java' 1.4 is in the path, or edit jp2kencode.sh and add the path to java. 3. Usage: jp2kencode.sh -i -o Where is the path to the source image file. Such as a TIF, BMG or JPEG file. is the path for the JPEG2000 encoded file. A single multi-resolution encapsulated wavelet image file. Suggested file extension is jp2. For full description of options run jp2kencode.sh -h Examples: a) jp2kencode.sh -i image.tif -o out.jp2 -Clayers 6 -slope 51651,51337,51186,50804,50548,50232 -- reversible compression to a 6 layer code-stream (6 embedded slopes) -- Provides a relative compression ratio based on quality, target compression ratio at 20 to 1. -- Visually lossless up to 3.5 x b) jp2kencode.sh -i image.tif -o out.jp2 -slope 0, -Clayers 1 -- reversible lossless compression -- Provides truly lossless compression at around 2 to 1 compression ratio. 4. For debug output edit jp2kencode.sh and change the value of the "-debug" parameter. Example: -debug 3 Values: 0 OFF 1 LOW 2 MEDIUM 3 HIGH 5. For an advance use of this tool edit InsightJPEG2Compression.dat and change the default settings.