{"id":18658347,"url":"https://github.com/shime/dominant-color","last_synced_at":"2025-04-11T19:32:17.874Z","repository":{"id":22000277,"uuid":"25325373","full_name":"shime/dominant-color","owner":"shime","description":"Gets dominant color of an image.","archived":false,"fork":false,"pushed_at":"2016-09-24T09:10:30.000Z","size":1160,"stargazers_count":63,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T03:25:40.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/shime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-16T22:38:39.000Z","updated_at":"2024-09-20T08:13:09.000Z","dependencies_parsed_at":"2022-08-20T15:30:40.124Z","dependency_job_id":null,"html_url":"https://github.com/shime/dominant-color","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fdominant-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fdominant-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fdominant-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fdominant-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shime","download_url":"https://codeload.github.com/shime/dominant-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248467032,"owners_count":21108587,"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-11-07T07:32:33.539Z","updated_at":"2025-04-11T19:32:17.388Z","avatar_url":"https://github.com/shime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dominant-color\n\n[![Build Status](https://travis-ci.org/shime/dominant-color.svg)](https://travis-ci.org/shime/dominant-color)\n\nGets dominant color of an image. ~10 times faster than [color-thief](https://www.npmjs.org/package/color-thief) because it uses plain old [imagemagick](https://www.npmjs.org/package/imagemagick) instead of canvas.\n\n## Installation\n\n    npm install dominant-color\n\n## Example\n\n```javascript\nvar color   = require('dominant-color'),\n    imgPath = './path/to/your/image.jpg'\n\ncolor(imgPath, function(err, color){\n  // hex color by default\n  console.log(color) // '5b6c6e'\n})\n\ncolor(imgPath, {format: 'rgb'}, function(err, color){\n  console.log(color) // ['91', '108', '110']\n})\n```\n\nOptions: \n\n* `format` - 'hex' or 'rgb', defaults to 'hex'\n\n## Alternatives\n\n* [color-thief](https://www.npmjs.org/package/color-thief)\n* [colour-extractor](https://www.npmjs.org/package/colour-extractor)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshime%2Fdominant-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshime%2Fdominant-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshime%2Fdominant-color/lists"}