{"id":13674796,"url":"https://github.com/gustavodiel/colorama","last_synced_at":"2025-07-01T02:38:45.507Z","repository":{"id":53478499,"uuid":"351948629","full_name":"gustavodiel/colorama","owner":"gustavodiel","description":"A Gem for extracting the most prevalent colors from an image","archived":false,"fork":false,"pushed_at":"2021-04-01T23:18:22.000Z","size":5346,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T12:05:54.431Z","etag":null,"topics":["color","extract","gem","gemfile","image","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/colorama","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/gustavodiel.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}},"created_at":"2021-03-27T00:49:41.000Z","updated_at":"2022-02-17T13:54:07.000Z","dependencies_parsed_at":"2022-09-05T15:31:35.586Z","dependency_job_id":null,"html_url":"https://github.com/gustavodiel/colorama","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gustavodiel/colorama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavodiel%2Fcolorama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavodiel%2Fcolorama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavodiel%2Fcolorama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavodiel%2Fcolorama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavodiel","download_url":"https://codeload.github.com/gustavodiel/colorama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavodiel%2Fcolorama/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262885266,"owners_count":23379551,"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":["color","extract","gem","gemfile","image","ruby"],"created_at":"2024-08-02T11:01:01.726Z","updated_at":"2025-07-01T02:38:45.488Z","avatar_url":"https://github.com/gustavodiel.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Colorama\n\nColorama is a Gem for extracting the most dominant and prominent colors from an image.\n\n## Requirements\n\nThis Gem uses `RMagick`, so the ImageMagick lib must be installed.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'colorama'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install colorama\n\n## Usage\n\nThe simplest usage is extracting the information from the image's file directly:\n```ruby\ncolors = Colorama.extract_from_file('filename')\n```\n\nand it returns a `Hash` containing the keys `background`, `primary`, `secondary` and `detail`.\n\n---\n\nYou may also pass the level of compression to apply to the image, like so:\n```ruby\ncolors = Colorama.extract_from_file('filename', detail: :high)\n```\n\nIt accepts `lowest`, `low`, `high` and `highest`\n\n## Examples\n\n![](./.images/examples.jpg)\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 the created tag, 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/gustavodiel/colorama. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/gustavodiel/colorama/blob/master/CODE_OF_CONDUCT.md).\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 Colorama project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/gustavodiel/colorama/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavodiel%2Fcolorama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavodiel%2Fcolorama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavodiel%2Fcolorama/lists"}