Skip to content

resize

Resize an image to custom width and height dimensions.

::: success Ready & Demoed :::

Planned Signature

ts
resize(input: Uint8Array, width: number, height: number) => Uint8Array

Planned Parameters

  • input — Encoded image bytes (PNG or JPEG)
  • width — Target width in pixels
  • height — Target height in pixels

Planned Returns

  • Uint8Array — Encoded PNG bytes of the resized image

Planned Features

  • Maintain or ignore aspect ratio
  • High-quality filtering algorithms
  • Support for different scaling modes