Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias ImageConverter

    the state spoolProxy keeps for images: checked options, the cache, the running encodes and the counters

    type ImageConverter = {
        cache: ImageCache | undefined;
        options: ResolvedImageOptions;
        running: Map<string, Promise<Uint8Array>>;
        stats: ImageStats;
    }
    Index
    cache: ImageCache | undefined
    running: Map<string, Promise<Uint8Array>>

    encodes in flight by cache key, so identical requests share one encoder call

    stats: ImageStats