escpos-ts API - v1.0.0
    Preparing search index...

    Interface ImageOptions

    Options for Escpos.image.

    1.0.0

    interface ImageOptions {
        center?: boolean;
        fragmentHeight?: number;
        highDensityHorizontal?: boolean;
        highDensityVertical?: boolean;
        impl?: "bitImageRaster" | "graphics" | "bitImageColumn";
    }
    Index

    Properties

    center?: boolean

    Centre the image within the printer's media width (default: false).

    fragmentHeight?: number

    Maximum fragment height in pixels; images taller than this are split (default: 960).

    highDensityHorizontal?: boolean

    Print in high horizontal density — pixels are not stretched horizontally (default: true).

    highDensityVertical?: boolean

    Print in high vertical density — pixels are not stretched vertically (default: true).

    impl?: "bitImageRaster" | "graphics" | "bitImageColumn"

    ESC/POS image printing implementation to use (default: 'bitImageRaster'):

    • 'bitImageRaster'GS v 0 raster command; widest compatibility.
    • 'graphics'GS ( L graphics command; better alignment on some models.
    • 'bitImageColumn'ESC * column command; required for IT80-002 and similar.