@radzor/image-resize
Resize, crop, and transform images using raw pixel manipulation. No external dependencies.
Mediav0.1.0typescriptpythonServerimageresizecropthumbnailtransformmediaby Radzor
Install
View source on GitHub →$npx radzor@latest add image-resize
⚠ Constraints: No external dependencies. Uses raw pixel manipulation — slower than native bindings but fully portable. Input must be a Buffer or Uint8Array of a supported format.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| quality | number | — | Output quality 1-100 (default: 80) |
qualitynumber
Output quality 1-100 (default: 80)
Outputs
| Name | Type | Description |
|---|---|---|
| imageBuffer | Buffer | Processed image as raw bytes. |
imageBufferBuffer
Processed image as raw bytes.
Actions
resize(input: Buffer | string, width: number, height: number)