{"id":26119360,"url":"https://github.com/baldomo/paletter","last_synced_at":"2025-04-13T10:41:32.252Z","repository":{"id":57534488,"uuid":"249166040","full_name":"Baldomo/paletter","owner":"Baldomo","description":"CLI app and library to extract a color palette from an image through clustering","archived":false,"fork":false,"pushed_at":"2024-08-26T18:27:15.000Z","size":1752,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T02:06:59.638Z","etag":null,"topics":["colors","golang","image-processing","kmeans","palette"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Baldomo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-22T11:08:52.000Z","updated_at":"2024-08-26T18:27:16.000Z","dependencies_parsed_at":"2024-06-19T17:38:32.843Z","dependency_job_id":"e0822a44-de60-4042-ba1b-a94ce2ad408a","html_url":"https://github.com/Baldomo/paletter","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/Baldomo%2Fpaletter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baldomo%2Fpaletter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baldomo%2Fpaletter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baldomo%2Fpaletter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baldomo","download_url":"https://codeload.github.com/Baldomo/paletter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248701421,"owners_count":21148031,"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":["colors","golang","image-processing","kmeans","palette"],"created_at":"2025-03-10T12:34:19.651Z","updated_at":"2025-04-13T10:41:32.227Z","avatar_url":"https://github.com/Baldomo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paletter\nPaletter is a CLI app and library to extract a color palette from an image through clustering (k-Means)\n\nExample output:\n\n![Unsplash (Anders Jildén), Vernazza](images/vernazza-paletted.png)\n\n### Installation\nTo install paletter just use:\n```sh\n$ go get -u -v github.com/Baldomo/paletter\n```\nTo install the CLI app use:\n```sh\n$ go install -v github.com/Baldomo/paletter/cmd/paletter\n```\n\n### Usage (CLI)\n```\nUsage: paletter [OPTIONS] \u003cIMAGE\u003e\nFlags:\n  -colors int\n        Number of colors to extract from the image (default 7)\n  -html\n        Output an html page\n  -out string\n        Set output file name/path\n  -png\n        Output a png image (default true)\n```\nThe CLI app outputs `png` images of resolution dependent on the source image (see `genimage.go` for calculations), with the extracted palette ordered by lightness from left to right\n\n---\n\n### Notes\n- Paletter uses the [CIE L\\*a\\*b\\* color space](https://en.wikipedia.org/wiki/CIELAB_color_space) both for the simplicity of its representation and it being device-indipendent\n- The k-Means implementation included in paletter is the naive one ([muesli/kmeans](https://github.com/muesli/kmeans/))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaldomo%2Fpaletter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaldomo%2Fpaletter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaldomo%2Fpaletter/lists"}