# glur

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

Latest version **2.0.0** (published 2026-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install glur
pnpm add glur
yarn add glur
bun add glur
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-05-17 |
| First published | 2015-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 106 |
| Maintainers | vitaly |
| Keywords | blur, gaussian |

## Links

- npm: https://www.npmjs.com/package/glur
- Repository: https://github.com/nodeca/glur
- Homepage: https://github.com/andr83/glur/issues
- Issues: https://github.com/nodeca/glur/issues
- npm.io page: https://npm.io/package/glur

## Recent versions

- 2.0.0 (latest) — 2026-05-17
- 1.1.2 — 2016-05-05
- 1.1.1 — 2015-11-10
- 1.1.0 — 2015-11-05
- 1.0.1 — 2015-11-04
- 1.0.0 — 2015-11-02

## README

glur
====

[![NPM version](https://img.shields.io/npm/v/glur.svg)](https://www.npmjs.org/package/glur)

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

__[demo 1](http://nodeca.github.io/glur/demo)__,
__[demo 2](http://nodeca.github.io/glur/demo/mono16.html)__.


Install
-------

```bash
npm install glur
```


API
---

```js
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
-------

- Andrey Tupitsin [@anrd83](https://github.com/andr83)
- Alexander Rodin [@a-rodin](https://github.com/a-rodin)
- Vitaly Puzrin [@puzrin](https://github.com/puzrin)


References
----------

- [IIR Gaussian Blur Filter Implementation using Intel® Advanced Vector Extensions](https://software.intel.com/en-us/articles/iir-gaussian-blur-filter-implementation-using-intel-advanced-vector-extensions) -
  very good article with technical details for programmers.


Licence
-------

[MIT](https://github.com/nodeca/glur/blob/master/LICENSE)

---
_Source: https://npm.io/package/glur · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
