{"id":32166537,"url":"https://github.com/perzanko/blurhash-elixir","last_synced_at":"2026-02-22T14:42:26.900Z","repository":{"id":57480065,"uuid":"288542205","full_name":"perzanko/blurhash-elixir","owner":"perzanko","description":"Pure Elixir implementation of Blurhash algorithm with no additional dependencies.","archived":false,"fork":false,"pushed_at":"2025-07-25T11:10:21.000Z","size":20,"stargazers_count":40,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-31T22:04:34.039Z","etag":null,"topics":["blurhash","elixir","encoder"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/blurhash","language":"Elixir","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/perzanko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-18T19:10:21.000Z","updated_at":"2025-10-28T11:59:48.000Z","dependencies_parsed_at":"2022-09-18T05:45:44.362Z","dependency_job_id":null,"html_url":"https://github.com/perzanko/blurhash-elixir","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/perzanko/blurhash-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perzanko%2Fblurhash-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perzanko%2Fblurhash-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perzanko%2Fblurhash-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perzanko%2Fblurhash-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perzanko","download_url":"https://codeload.github.com/perzanko/blurhash-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perzanko%2Fblurhash-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29716358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T13:30:57.152Z","status":"ssl_error","status_checked_at":"2026-02-22T13:30:28.561Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blurhash","elixir","encoder"],"created_at":"2025-10-21T15:06:47.143Z","updated_at":"2026-02-22T14:42:26.889Z","avatar_url":"https://github.com/perzanko.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlurHash\n\nPure Elixir implementation of Blurhash algorithm with no additional dependencies.\n\nBlurhash is an algorithm by Dag Ågren of Wolt that decodes an image to a very compact (~ 20-30 bytes) ASCII string representation, which can be then decoded into a blurred placeholder image. See the main [repository](https://github.com/woltapp/blurhash) for the rationale and details.\n\nMore details on https://blurha.sh/\n\nDocumentation available on hexdocs: https://hexdocs.pm/blurhash\n\n## Installation\n\nBlurHash is published on [Hex](https://hexdocs.pm/blurhash). Add it to your list of dependencies in mix.exs:\n\n```elixir\ndef deps do\n  [\n    {:blurhash, \"~\u003e 2.0.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\n# Pixel data supplied in RGB order, with 3 bytes per pixels.\npixels = [255, 43, 20, 11, 0, 155, ...]\n\nhash = BlurHash.encode(pixels, 30, 30, 4, 3)\n\nIO.inspect(hash) # \"LEHV6nWB2yk8pyo0adR*.7kCMdnj\"\n```\n\nIf you would like to convert raw binary instead of RGB image format, you can use eg [Mogrify](https://github.com/route/mogrify) package to perform conversion.\n\n```elixir\nimport Mogrify\n\nfile =\n  open(path)\n  |\u003e format(\"rgb\")\n  |\u003e save()\n\npixels =\n  File.read!(file.path)\n  |\u003e :binary.bin_to_list()\n\nhash = BlurHash.encode(pixels, 30, 30, 4, 3)\n\nIO.inspect(hash) # \"LEHV6nWB2yk8pyo0adR*.7kCMdnj\"\n```\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nAny contributions you make are **greatly appreciated** 🤓.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE.md` for more information.\n\n## Contact\n\n[**@perzanko**](mailto:perzankowski.kacper@gmail.com)\n\n---\n\nProject Link: [https://github.com/perzanko/blurhash-elixir](https://github.com/perzanko/blurhash-elixir)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperzanko%2Fblurhash-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperzanko%2Fblurhash-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperzanko%2Fblurhash-elixir/lists"}