Raster image processing functions implemented in TypeScript
Obligatory BadgeFest:
- Written in pure TypeScript
To install the stable version:
npm install --save thaw-image-processing.ts
interface IThAWImage extends ImageData { ... }
function createThAWImage(
width: number,
height: number,
bytesPerPixel?: number,
bytesPerLine?: number,
data?: Uint8ClampedArray
): IThAWImage { ... }
- compositeImageFromBuffers()
- convolveImageFromBuffer()
- desaturateRGBA() (via mapColoursInImageFromBuffer())
- flipImage() (via doAffineTransformation())
- gaussianBlurImage()
- mapColoursInImageFromBuffer()
- mirrorImage() (via doAffineTransformation())
- pixelateImage()
- resampleImage() (nearest neighbour, bilinear, and bicubic)
- rotate180DegreesFromImage()
- rotate90DegreesClockwiseFromImage()
- rotate90DegreesCounterclockwiseFromImage()