{"id":16731453,"url":"https://github.com/skratchdot/color-palette","last_synced_at":"2025-04-10T11:20:43.121Z","repository":{"id":22464160,"uuid":"25802889","full_name":"skratchdot/color-palette","owner":"skratchdot","description":"Get a color palette from a uri using phantomjs and color-thief","archived":false,"fork":false,"pushed_at":"2016-08-31T16:57:14.000Z","size":485,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T10:06:31.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/skratchdot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-27T04:14:36.000Z","updated_at":"2021-09-09T12:35:30.000Z","dependencies_parsed_at":"2022-08-20T16:51:17.479Z","dependency_job_id":null,"html_url":"https://github.com/skratchdot/color-palette","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fcolor-palette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fcolor-palette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fcolor-palette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fcolor-palette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/color-palette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208602,"owners_count":21065203,"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-10-12T23:37:20.192Z","updated_at":"2025-04-10T11:20:43.104Z","avatar_url":"https://github.com/skratchdot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# color-palette\n\n[![Build Status](https://travis-ci.org/skratchdot/color-palette.png?branch=master)](https://travis-ci.org/skratchdot/color-palette)\n[![Dependency Status](https://david-dm.org/skratchdot/color-palette.svg)](https://david-dm.org/skratchdot/color-palette)\n[![devDependency Status](https://david-dm.org/skratchdot/color-palette/dev-status.svg)](https://david-dm.org/skratchdot/color-palette#info=devDependencies)\n\n\n## Description\n\ncolor-palette is a command line tool that uses\n[phantomjs](http://phantomjs.org/) and [color-thief](https://github.com/lokesh/color-thief)\nto get a color palette from a website or an image.\nAny resource that can be opened in phantomjs can be used.\n\n\n## Installation\n\nInstall the command line tool globally by running:\n\n    npm install -g color-palette\n\n\n## Usage\n\n    Usage: color-palette [options] \u003cresource\u003e\n\n\n## Options\n\n    -h, --help               output usage information\n    -v, --version            output the version number\n    -s, --size \u003csize\u003e        the target size of the color palette (might return +/- 2)\n    -q, --quality \u003cquality\u003e  the quality of the colors (0 is highest, 10 is default)\n    -i, --image              add image to output\n    -o, --output [type]      specify the output type: text, json, or html\n\n\n## Examples\n\nGet a color palette for google.com\n```bash\n$ color-palette http://google.com\n      Resource: http://google.com\n       Success: true\nDominant Color: #2d2f2e\n       Palette: #dcd7d2,#2b2b2b,#2a5fe3,#d94835,#30a28f,#7a7a7a,#049451\n```\n\nGet a color palette for amazon.com, output should be in json format\n```bash\n$ color-palette -o json http://amazon.com\n{\n  \"resource\": \"http://amazon.com\",\n  \"uri\": \"http://amazon.com\",\n  \"success\": true,\n  \"dominantColor\": \"#253a4f\",\n  \"palette\": [\n    \"#24364b\",\n    \"#dadbda\",\n    \"#84454a\",\n    \"#c38f3d\",\n    \"#758b9d\",\n    \"#ad8989\",\n    \"#2ea9c3\"\n  ]\n}\n```\n\nGet an html report for amazon.com and open it\n```bash\n$ color-palette -o html http://amazon.com \u003e output.html \u0026 open output.html\n\n# alternative version if you're using OSX w/ homebrew `brew install browser`:\n$ color-palette -o html http://amazon.com \u003e output.html | browser\n```\n\nGet a color palette for reddit.com, include a screenshot in the json output\n```bash\ncolor-palette -i -j http://reddit.com \u003e output.json\n```\n***NOTE: when including the image switch, the output is very large\ndue to the base64 encoded image data uri***\n\n\n## See Also\n\n- [Color Thief](http://lokeshdhakar.com/projects/color-thief/) - This is the library that \n  I use to get palette information in the color-palette cli.\n- [Pictaculous](http://www.pictaculous.com/) - Upload an image and get it's palatte. They provide\n  a [free api](http://www.pictaculous.com/api/) as well. At some point I might integrate this API\n  into the color-palette cli.\n- [url2png](https://www.url2png.com/) - An API for taking screenshots of websites. Currently, I'm\n  using phantomjs for taking screenshots, but combining the url2png and pictaculous APIs would be\n  an alternative to using color-palette.\n\n\n## License\n\nCopyright (c) 2014 skratchdot  \nLicensed under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fcolor-palette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Fcolor-palette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fcolor-palette/lists"}