Skip to content

grayscale

Convert an image to grayscale.

::: success Ready & Demoed :::

Planned Signature

ts
grayscale(input: Uint8Array) => Uint8Array

Planned Parameters

  • input — Encoded image bytes (PNG or JPEG)

Planned Returns

  • Uint8Array — Encoded PNG bytes of the grayscale image

Planned Features

  • Luminance-based conversion
  • Preserve image quality
  • Support for different grayscale algorithms
  • Maintain transparency in PNG images