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 pixelsheight
— 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