{"id":22281777,"url":"https://github.com/quadule/colorscore","last_synced_at":"2025-06-27T00:33:58.666Z","repository":{"id":62556029,"uuid":"2242232","full_name":"quadule/colorscore","owner":"quadule","description":"Finds the dominant colors in an image and scores them against a user-defined palette, using the CIE2000 Delta E formula.","archived":false,"fork":false,"pushed_at":"2017-03-27T07:30:42.000Z","size":72,"stargazers_count":85,"open_issues_count":3,"forks_count":26,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T05:06:10.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quadule.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-21T04:24:39.000Z","updated_at":"2025-06-16T02:26:36.000Z","dependencies_parsed_at":"2022-11-03T05:45:36.923Z","dependency_job_id":null,"html_url":"https://github.com/quadule/colorscore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/quadule/colorscore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fcolorscore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fcolorscore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fcolorscore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fcolorscore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quadule","download_url":"https://codeload.github.com/quadule/colorscore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadule%2Fcolorscore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262166170,"owners_count":23268994,"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-12-03T16:21:58.386Z","updated_at":"2025-06-27T00:33:58.612Z","avatar_url":"https://github.com/quadule.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorscore\n\nColorscore is a simple library that uses ImageMagick to quantize an image and find its representative colors. It can also score those colors against a palette using the CIE2000 Delta E formula. This could be used to index images for a \"search by color\" feature.\n\n## Requirements\n\n* ImageMagick 6.5+\n\n## Usage\n\n```ruby\ninclude Colorscore\nhistogram = Histogram.new('test/fixtures/skydiver.jpg')\n\n# This image is 78.8% #7a9ab5:\nhistogram.scores.first # =\u003e [0.7884625, RGB [#7a9ab5]]\n\n# This image is closest to pure blue:\npalette = Palette.from_hex(['ff0000', '00ff00', '0000ff'])\nscores = palette.scores(histogram.scores, 1)\nscores.first # =\u003e [0.16493763694876, RGB [#0000ff]]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadule%2Fcolorscore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquadule%2Fcolorscore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadule%2Fcolorscore/lists"}