{"id":22541332,"url":"https://github.com/kayahr/stackblur","last_synced_at":"2025-04-09T21:50:30.086Z","repository":{"id":242698588,"uuid":"810280871","full_name":"kayahr/stackblur","owner":"kayahr","description":"A fast but still good looking image blur","archived":false,"fork":false,"pushed_at":"2025-03-31T17:10:00.000Z","size":4236,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T16:14:22.829Z","etag":null,"topics":["blur","filter","image","imaging","stackblur","typescript"],"latest_commit_sha":null,"homepage":"https://kayahr.github.io/stackblur/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kayahr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"kayahr","custom":"https://paypal.me/kayaahr/"}},"created_at":"2024-06-04T11:48:18.000Z","updated_at":"2025-02-04T08:11:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"539541a8-4d27-40c7-a3d7-ecef492f7a07","html_url":"https://github.com/kayahr/stackblur","commit_stats":null,"previous_names":["kayahr/stackblur"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayahr%2Fstackblur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayahr%2Fstackblur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayahr%2Fstackblur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayahr%2Fstackblur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayahr","download_url":"https://codeload.github.com/kayahr/stackblur/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119404,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blur","filter","image","imaging","stackblur","typescript"],"created_at":"2024-12-07T12:15:29.741Z","updated_at":"2025-04-09T21:50:30.068Z","avatar_url":"https://github.com/kayahr.png","language":"TypeScript","readme":"StackBlur\n=========\n\n[GitHub] | [NPM] | [API Doc]\n\nA fast almost Gaussian Blur. Based on Mario Klingemann's original [StackBlur v0.5](http://web.archive.org/web/20110707030516/http://www.quasimondo.com/StackBlurForCanvas/StackBlur.js) from 2011 with the following changes:\n\n* Ported to modern TypeScript.\n* Converted to a NPM module.\n* Fixed bit-shifting error preventing the usage of blur radius larger than 180.\n* Fix problems with blur radius larger than image.\n* Improved alpha channel blurring.\n\nUsage\n-----\n\nInstall the library as a dependency in your project:\n\n```\nnpm install @kayahr/stackblur\n```\n\nAnd then use it like this:\n\n```typescript\nimport { blurImageData } from \"@kayahr/stackblur\";\n\n// Get image data from some canvas\n// ...\nconst imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n\n// Blur image data\nconst radius = 10; // Valid range: 0-254\nconst withAlpha = false; // Optional, defaults to true\nblurImageData(imageData, radius, withAlpha);\n\n// Draw image data back onto canvas\nctx.putImageData(imageData, 0, 0);\n```\n\nThe blur function itself has no dependency on `Canvas` or a real `ImageData` object. The passed image data simply must have a `data` property containing the raw RGBA pixels as a `Uint8Array` or `ClampedUint8Array` and a `width` and `height` property. So it should work fine with libraries like [node-canvas], [sharp] or [jimp].\n\n[API Doc]: https://kayahr.github.io/stackblur/\n[GitHub]: https://github.com/kayahr/stackblur\n[NPM]: https://www.npmjs.com/package/@kayahr/stackblur\n[node-canvas]: https://www.npmjs.com/package/canvas\n[sharp]: https://www.npmjs.com/package/sharp\n[jimp]: https://www.npmjs.com/package/jimp\n","funding_links":["https://github.com/sponsors/kayahr","https://paypal.me/kayaahr/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayahr%2Fstackblur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayahr%2Fstackblur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayahr%2Fstackblur/lists"}