@dusrel/image API
    Preparing search index...

    Interface ResizeOptions

    interface ResizeOptions {
        alpha?: "premultiplied" | "straight";
        filter?: ResizeFilter;
        height: number;
        width: number;
    }
    Index
    alpha?: "premultiplied" | "straight"

    Alpha handling. 'premultiplied' (default) resamples in premultiplied space — the mathematically correct path that stops transparent pixels' colours bleeding into visible edges. 'straight' resamples raw channels (for data/masks, not photos).

    filter?: ResizeFilter

    Resampling filter. Default 'lanczos3' (the high-quality default, especially for downscaling). 'nearest' for pixel art.

    height: number

    Target height in pixels (positive integer).

    width: number

    Target width in pixels (positive integer).