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

    Type Alias ImageEncoder

    ImageEncoder: (
        input: Uint8Array,
        options: ImageEncodeOptions,
    ) => Promise<ImageEncoded>

    Re-encodes JPEG or PNG bytes. The encoder never upscales: width is a ceiling, and an image narrower than it keeps its size. It throws on input it cannot decode, and the proxy then serves the original bytes.

    Type Declaration