Test/node_modules/glur
2026-04-09 22:54:00 +07:00
..
CHANGELOG.md Initial commit 2026-04-09 22:54:00 +07:00
index.js Initial commit 2026-04-09 22:54:00 +07:00
LICENSE Initial commit 2026-04-09 22:54:00 +07:00
mono16.js Initial commit 2026-04-09 22:54:00 +07:00
package.json Initial commit 2026-04-09 22:54:00 +07:00
README.md Initial commit 2026-04-09 22:54:00 +07:00

glur

Build Status NPM version

Fast Gaussian Blur in pure JavaScript, via IIR filer. Speed does not depend on blur radius.

demo 1, demo 2.

Install

npm install glur --save

API

require('glur')(src, width, height, radius)

  • src - typed array with image RGBA data (will be updated with blured image).
  • width - image width.
  • height - image height.
  • radius - blur radius.

require('glur/mono16')(src, width, height, radius) - the same as above, but input data is grayscale Uint16Array. Can be useful to calculate unsharp mask via brightness/ligthness channel.

Authors

References

Licence

MIT