{"id":13513448,"url":"https://github.com/Gargron/blurhash","last_synced_at":"2025-03-31T02:32:18.903Z","repository":{"id":43488834,"uuid":"182348964","full_name":"Gargron/blurhash","owner":"Gargron","description":"Encode an image as a small string that can be saved in the database, returned in API responses, and displayed as a blurred preview before the real image loads","archived":false,"fork":false,"pushed_at":"2024-09-26T16:24:36.000Z","size":138,"stargazers_count":292,"open_issues_count":9,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-22T20:35:28.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/Gargron.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2019-04-20T02:15:16.000Z","updated_at":"2024-10-14T07:29:52.000Z","dependencies_parsed_at":"2024-10-23T00:37:04.366Z","dependency_job_id":null,"html_url":"https://github.com/Gargron/blurhash","commit_stats":{"total_commits":25,"total_committers":8,"mean_commits":3.125,"dds":"0.43999999999999995","last_synced_commit":"db591a85d90d9ce02abf84399799c08162ebca5a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gargron%2Fblurhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gargron%2Fblurhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gargron%2Fblurhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gargron%2Fblurhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gargron","download_url":"https://codeload.github.com/Gargron/blurhash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222615145,"owners_count":17012022,"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":[],"created_at":"2024-08-01T05:00:25.823Z","updated_at":"2024-11-01T17:30:22.421Z","avatar_url":"https://github.com/Gargron.png","language":"C","readme":"# Blurhash\n\nThis is a Ruby binding for the Blurhash library. With it you can encode an image as a small string that can be saved in the database, returned in API responses, and displayed as a blurred preview before the real image loads.\n\nBlurhash is written by [Dag Ågren](https://github.com/DagAgren).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'blurhash'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install blurhash\n\n## Usage\n\nTo generate the blurhash string from an image file, you need to read in the image pixel data yourself, for example with RMagick:\n\n```ruby\nrequire 'blurhash'\nrequire 'rmagick'\n\nimage = Magick::ImageList.new('foo.png')\n\nputs Blurhash.encode(image.columns, image.rows, image.export_pixels)\n```\n\nTo display the visual component once you have the blurhash string, you need another library in JavaScript, Swift, Kotlin and so on. Fore more information, see [the original blurhash repository](https://github.com/woltapp/blurhash).\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Gargron/blurhash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Blurhash project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Gargron/blurhash/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGargron%2Fblurhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGargron%2Fblurhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGargron%2Fblurhash/lists"}