JpegOptions: {
    noSubsample?: boolean;
    optimizeScans?: boolean;
    overshootDeringing?: boolean;
    progressive?: boolean;
    quantizationTable?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
    trellisQuant?: boolean;
}

The JPEG options

Type declaration

  • Optional noSubsample?: boolean

    If true, chrominance sub-sampling is disabled

  • Optional optimizeScans?: boolean

    If true, split the spectrum of DCT coefficients into separate scans

  • Optional overshootDeringing?: boolean

    If true, enables overshooting of samples with extreme values

  • Optional progressive?: boolean

    If true, enables progressive JPEG compression

  • Optional quantizationTable?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

    Quantization table to use

    0: Table from JPEG Annex K (default);
    1: Flat table;
    2: Table tuned for MSSIM on Kodak image set;
    3: Table from ImageMagick by N. Robidoux;
    4: Table tuned for PSNR-HVS-M on Kodak image set;
    5: Table from Relevance of Human Vision to JPEG-DCT Compression (1992);
    6: Table from DCTune Perceptual Optimization of Compressed Dental X-Rays (1997);
    7: Table from A Visual Detection Model for DCT Coefficient Quantization (1993);
    8: Table from An Improved Detection Model for DCT Coefficient Quantization (1993).
  • Optional trellisQuant?: boolean

    If true, enables trellis quantization for each 8x8 block

Generated using TypeDoc