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

  • OptionalnoSubsample?: boolean

    If true, chrominance sub-sampling is disabled

  • OptionaloptimizeScans?: boolean

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

  • OptionalovershootDeringing?: boolean

    If true, enables overshooting of samples with extreme values

  • Optionalprogressive?: boolean

    If true, enables progressive JPEG compression

  • OptionalquantizationTable?:
        | 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).
    
  • OptionaltrellisQuant?: boolean

    If true, enables trellis quantization for each 8x8 block