image-processing-js

A pure JavaScript raster image processing engine.

Usage no npm install needed!

<script type="module">
  import imageProcessingJs from 'https://cdn.skypack.dev/image-processing-js';
</script>

README

image-processing-js

A pure JavaScript raster image processing engine.

Build Status npm npm Maintainability Known Vulnerabilities license

Installation

Clone the repository and build it:

$ git clone https://github.com/tom-weatherhead/image-processing-js.git
$ cd image-processing-js
$ npm run build

Then run an image processing command; e.g.

$ npm start -- rs
$ npm start -- rs -sc -w 640 -h 480 -q 60

Supported bitmap image processing operations:

- Colour transformations
- Compositing
- Convolvutions, including Gaussian blur
- Flip and mirror
- Pixelate
- Resampling: Nearest neighbour, bilinear, and bicubic
- Rotation

TODO:

- Implement and test resampling in context
- Test the new dividend remapping algorithm
- Attempt to improve the performance of the arithmetic code by using integer types such as UINT16,
and optimized operations such as (x / 256) === (x >> 8);
- Add unit tests

License

MIT