# JPEGLS

(GDAL >= 1.8.0)

This driver is an implementation of a JPEG-LS reader/writer based on the Open Source CharLS library (BSD style license). At the time of writing, the CharLS library in its 1.0 version has no "make install" target. Consequently, the integration of the driver in the GDAL build system is a bit rough. On Unix, you have to edit the GDALmake.opt file and edit the lines related to CHARLS.

The driver can read and write lossless or near-lossless images. Note that it is not aimed at dealing with too big images (unless enough virtual memory is available), since the whole image must be compressed/decompressed in a single operation.

## Creation Options

- INTERLEAVE=PIXEL/LINE/BAND : Data interleaving in compressed stream. Default to BAND.

- LOSS_FACTOR=error_threshold : 0 (the default) means loss-less compression. Any higher value will be the maximum bound for the error.

## See Also:

- Implemented as `gdal/frmts/jpegls/jpeglsdataset.cpp`.

- Homepage of the CharLS library