@newspapper/core
    Preparing search index...

    Interface RenderSlidesOptions

    interface RenderSlidesOptions {
        date: string;
        slidesJson: unknown;
        caption?: string;
        outputRoot?: string;
        quality?: number;
        onProgress?: (done: number, total: number) => void;
        db?: Database;
    }
    Index
    date: string

    YYYY-MM-DD — used to name the output directory.

    slidesJson: unknown

    Written as slides.json (pretty-printed).

    caption?: string

    Written as caption.txt when present.

    outputRoot?: string

    Override default /output root; useful for tests.

    quality?: number

    JPEG quality, 0–100. Defaults to draft quality (92) — size only matters at publish.

    onProgress?: (done: number, total: number) => void

    Called after each slide is written: (done, total).

    db?: Database

    The uploads database, so image bytes reach the render browser from disk rather than over HTTP.

    A run that renders slides with images must pass this. /uploads/* is a guarded route since newspapper left loopback, and the render browser carries no session — so without it every <Image> fetches a 401 and comes out blank. See render/uploads-route.ts.