{"id":17189101,"url":"https://github.com/esimov/stackblur-go","last_synced_at":"2025-04-04T22:06:20.108Z","repository":{"id":51535552,"uuid":"102088138","full_name":"esimov/stackblur-go","owner":"esimov","description":"A fast, almost Gaussian Blur implementation in Go","archived":false,"fork":false,"pushed_at":"2023-11-12T14:59:41.000Z","size":690,"stargazers_count":257,"open_issues_count":0,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T21:05:02.091Z","etag":null,"topics":["blur","gaussian","golang","image","image-processing","stackblur"],"latest_commit_sha":null,"homepage":"","language":"Go","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/esimov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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":"esimov"}},"created_at":"2017-09-01T07:51:05.000Z","updated_at":"2025-03-23T23:45:10.000Z","dependencies_parsed_at":"2024-06-18T13:41:34.184Z","dependency_job_id":"171dcef3-dc05-4268-9bfc-1692bc38e310","html_url":"https://github.com/esimov/stackblur-go","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fstackblur-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fstackblur-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fstackblur-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fstackblur-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esimov","download_url":"https://codeload.github.com/esimov/stackblur-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256112,"owners_count":20909240,"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","gaussian","golang","image","image-processing","stackblur"],"created_at":"2024-10-15T01:10:45.631Z","updated_at":"2025-04-04T22:06:20.079Z","avatar_url":"https://github.com/esimov.png","language":"Go","readme":"# stackblur-go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/esimov/stackblur-go.svg)](https://pkg.go.dev/github.com/esimov/stackblur-go)\n[![build](https://github.com/esimov/stackblur-go/actions/workflows/build.yml/badge.svg)](https://github.com/esimov/stackblur-go/actions/workflows/build.yml)\n\nGo port of Mario Klingemann's [Stackblur](http://incubator.quasimondo.com/processing/fast_blur_deluxe.php) algorithm.\n\nStackblur is a compromise between Gaussian blur and Box blur, but it creates much better looking blurs than Box blur and it is ~7x faster than Gaussian blur.\n\nComparing to the Javascript implementation the Go version is at least 50% faster (depending on the image size and blur radius), applied on the same image with the same bluring radius.\n\n### Benchmark\nRadius       | Javascript  | Go\n-------------|-------------|-------------\n20           | ~15ms       | ~7.4ms\n\n## Installation\n\nFirst, install Go, set your GOPATH, and make sure $GOPATH/bin is on your PATH.\n\n```bash\n$ export GOPATH=\"$HOME/go\"\n$ export PATH=\"$PATH:$GOPATH/bin\"\n```\n\nNext download the project and build the binary file.\n\n```bash\n$ go get -u -f github.com/esimov/stackblur-go\n$ cd cmd \u0026\u0026 go build -o $GOPATH/bin/stackblur\n```\n\n#### CLI example\n\nThe provided CLI example supports the following flags:\n```bash\n$ stackblur --help\n\nUsage of stackblur:\n  -gif\n    \tOutput Gif\n  -in string\n    \tSource\n  -out string\n    \tDestination\n  -radius int\n    \tRadius (default 20)\n```\nThe command below will generate the blurred version of the source image.\n\n```bash\n$ stackblur -in image/sample.png -out image/output.png -radius 10\n```\nThe cli command supports a `-gif` flag, which if set as true it visualize the bluring process by outputting the result into a gif file.\n\n## API\n\nThe usage of the API is very simple: you need to expose an image file and a blur radius to the `Process` function. This will return the blurred version of the original image.\n\n```Go\nstackblur.Process(src, blurRadius)\n```\n\n## Results\n\n| Original image | Blurred image |\n|:--:|:--:|\n| \u003cimg src=\"https://github.com/esimov/stackblur-go/blob/master/image/sample.png\" height=\"300\"\u003e | \u003cimg src=\"https://github.com/esimov/stackblur-go/blob/master/image/output.png\" height=\"300\"\u003e |\n\n\n## License\n\nThis project is under the MIT License. See the [LICENSE](https://github.com/esimov/stackblur-go/blob/master/LICENSE) file for the full license text.\n","funding_links":["https://github.com/sponsors/esimov"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Fstackblur-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesimov%2Fstackblur-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Fstackblur-go/lists"}