glur

Fast gaussian blur in pure JavaScript via IIR filer

Latest version: 2.0.0 registry icon
Maintenance score
34
Safety score
100
Popularity score
64
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
2.0.0 0 0 0 0 0
1.1.2 0 0 0 0 0
1.1.1 0 0 0 0 0
1.1.0 0 0 0 0 0
1.0.1 0 0 0 0 0
1.0.0 0 0 0 0 0

Stability
Latest release:

2.0.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



glur

NPM version

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

demo 1, demo 2.

Install

npm install glur

API

import { blurRGBA, blurMono16 } from 'glur'

blurRGBA(src, width, height, radius)

  • src - Uint8ClampedArray or Uint8Array with RGBA image data (modified in place).
  • width - image width.
  • height - image height.
  • radius - blur radius.

blurMono16(src, width, height, radius)

Same as above, but input is a grayscale Uint16Array. Useful for unsharp mask via brightness/lightness channel.

Authors

References

Licence

MIT