@dusrel/image API
    Preparing search index...

    Interface ProcessOptions

    interface ProcessOptions {
        background?: string | null;
        crop?: Rect;
        flipHorizontal?: boolean;
        flipVertical?: boolean;
        format?: OutputFormat;
        maxSizeBytes?: number;
        onProgress?: (step: ProgressStep) => void;
        quality?: number;
        resize?: ResizeOptions;
        rotate?: number;
        signal?: AbortSignal;
    }
    Index
    background?: string | null

    Fill colour used where rotation exposes corners and when flattening transparency for JPEG. Default #ffffff for JPEG output, transparent otherwise. Set to null to force transparency (non-JPEG only).

    crop?: Rect
    flipHorizontal?: boolean
    flipVertical?: boolean
    format?: OutputFormat

    Output format. Default: the input Blob's type when supported; image/png for canvas/ImageData sources (they may carry alpha); otherwise image/jpeg.

    maxSizeBytes?: number

    Target-size mode: re-encode with descending quality (bounded binary search) until the output is at most this many bytes. Lossy formats only. When the budget cannot be met even at minimum quality, the smallest best-effort result is returned and targetSizeMet is false.

    onProgress?: (step: ProgressStep) => void
    quality?: number

    0..1, default 0.85. Ignored for PNG (lossless).

    resize?: ResizeOptions
    rotate?: number

    Degrees clockwise. Any value; multiples of 90 are exact.

    signal?: AbortSignal