{"id":20496491,"url":"https://github.com/hardpixel/colordom","last_synced_at":"2025-10-24T20:15:24.684Z","repository":{"id":62559568,"uuid":"494175978","full_name":"hardpixel/colordom","owner":"hardpixel","description":"Ruby gem to extract color palettes from images implemented in Rust.","archived":false,"fork":false,"pushed_at":"2025-09-07T08:35:21.000Z","size":952,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T06:57:19.197Z","etag":null,"topics":["dominant-colors","native-extension","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/hardpixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["jonian"]}},"created_at":"2022-05-19T17:53:32.000Z","updated_at":"2025-09-07T08:35:23.000Z","dependencies_parsed_at":"2024-01-09T11:03:44.209Z","dependency_job_id":"22ac465f-7a38-4321-a142-a85654400ae8","html_url":"https://github.com/hardpixel/colordom","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"073723afe3cce11c2cc97f674991a7787012263b"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/hardpixel/colordom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Fcolordom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Fcolordom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Fcolordom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Fcolordom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardpixel","download_url":"https://codeload.github.com/hardpixel/colordom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Fcolordom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280858144,"owners_count":26403262,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dominant-colors","native-extension","ruby","ruby-gem"],"created_at":"2024-11-15T18:07:26.490Z","updated_at":"2025-10-24T20:15:24.650Z","avatar_url":"https://github.com/hardpixel.png","language":"Ruby","readme":"# Colordom\n\nRuby gem to extract dominant colors from images using native extension implemented in Rust. Rust must be available on your system to install this gem.\n\n[![Gem Version](https://badge.fury.io/rb/colordom.svg)](https://badge.fury.io/rb/colordom)\n[![Build](https://github.com/hardpixel/colordom/actions/workflows/build.yml/badge.svg)](https://github.com/hardpixel/colordom/actions/workflows/build.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/6040c6d79abf2d6e7efb/maintainability)](https://codeclimate.com/github/hardpixel/colordom/maintainability)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'colordom'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install colordom\n\n## Usage\n\n```ruby\nrequire 'colordom'\n\n# Get colors using histogram algorithm\nColordom.histogram(image_path)\n\n# Get colors using median cut algorithm\nColordom.mediancut(image_path)\n\n# Get colors using kmeans algorithm\nColordom.kmeans(image_path)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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/hardpixel/colordom.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":["https://github.com/sponsors/jonian"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardpixel%2Fcolordom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardpixel%2Fcolordom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardpixel%2Fcolordom/lists"}