enableJpegSupport static method

void enableJpegSupport()

Registers package:image's JPEG decoder as the codec used for Compression 6/7 (JPEG-in-TIFF) strips/tiles. Call this once before decoding a JPEG-compressed TIFF — without it, TiffImage.decode throws a clear error for those pages instead of silently failing.

Implementation

static void enableJpegSupport() {
  JpegCodecHook.decoder = _decodeJpegChunk;
}