Detalhes do pacote

glur

nodeca2.9mMIT1.1.2

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

blur, gaussian

readme (leia-me)

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

changelog (log de mudanças)

1.1.2 / 2016-05-05

  • Fixed typo in RGBA blur math equations (regression from 1.1.0), thanks to @tonykwok.

1.1.1 / 2015-11-10

  • Fixed line buffer size for mono blur when vertical images used.

1.1.0 / 2015-11-05

  • Changed interpolation fn to one from Intel's whitepaper.

1.0.1 / 2015-11-04

  • Maintenance: general cleanup, demo improvements.

1.0.0 / 2015-11-02

  • First release.