@newspapper/core
    Preparing search index...

    Interface HtmlToJpegOptions

    interface HtmlToJpegOptions {
        width?: number;
        height?: number;
        quality?: number;
        db?: Database;
    }
    Index
    width?: number
    height?: number
    quality?: number

    JPEG quality, 0–100. Defaults to DEFAULT_JPEG_QUALITY.

    db?: Database

    The uploads database, so <Image> bytes are served to the render page from disk instead of fetched over HTTP.

    Optional, and omitting it is a real choice rather than a default. Without it the page falls back to fetching /uploads/<ref> from the API — which now requires a session the render browser does not have, so images come out blank. That is the intended failure: /uploads/* stopped being a public route when newspapper left loopback, and a silent fallback to an unauthenticated fetch is exactly what must not happen. Callers that render slides with images pass it; render.test.ts's text-only fixtures do not.

    See uploads-route.ts for why interception beat a render-scoped token.