{"id":21657634,"url":"https://github.com/vannrr/color-schemorator","last_synced_at":"2025-03-20T05:22:13.136Z","repository":{"id":257308908,"uuid":"850117247","full_name":"VannRR/color-schemorator","owner":"VannRR","description":"Color Schemorator is a tool that adjusts the color palette of an image based on a provided list of hex color codes.","archived":false,"fork":false,"pushed_at":"2024-09-15T21:43:37.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T07:07:28.351Z","etag":null,"topics":["cli","color-palette","color-scheme","command-line","go","golang","hex-colors","image-manipulation","image-processing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/VannRR.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":"2024-08-30T23:17:21.000Z","updated_at":"2024-09-15T21:43:40.000Z","dependencies_parsed_at":"2024-09-15T23:35:14.695Z","dependency_job_id":null,"html_url":"https://github.com/VannRR/color-schemorator","commit_stats":null,"previous_names":["vannrr/color-schemorator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VannRR%2Fcolor-schemorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VannRR%2Fcolor-schemorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VannRR%2Fcolor-schemorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VannRR%2Fcolor-schemorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VannRR","download_url":"https://codeload.github.com/VannRR/color-schemorator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554918,"owners_count":20471323,"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":["cli","color-palette","color-scheme","command-line","go","golang","hex-colors","image-manipulation","image-processing"],"created_at":"2024-11-25T09:27:21.566Z","updated_at":"2025-03-20T05:22:13.117Z","avatar_url":"https://github.com/VannRR.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Schemorator\n\n```\nUsage:\n  csor -m generate -p \u003cpalettePath\u003e -i \u003cimgInputPath\u003e -o \u003cimgOutputPath\u003e\n  csor -m extract -i \u003cimgInputPath\u003e -P \u003cpaletteOutputPath\u003e\n  csor -v\n  csor -h\n\nDescription:\n  Color Schemorator modifies an image's color palette based on a given list\n  of hex color codes (file can have '//' comments) or extracts the color\n  palette from an image.\n\n  - Generate mode: Creates a new image by replacing its colors with the\n    closest matches from the specified palette.\n  - Extract mode: Extracts the color palette from an image (in order of\n    occurrence) and saves it to a file.\n\nArguments:\n  -m   Mode of operation: 'generate' or 'extract'.\n  -p   Path to the plain text file containing hex color codes, one per line\n       (required for 'generate' mode).\n  -i   Path to the input image file (supported formats: jpg, jpeg, png).\n  -o   Path to the output image file (supported formats: jpg, jpeg, png)\n       (required for 'generate' mode).\n  -P   Path to the output palette file (required for 'extract' mode).\n  -v   Display the version of the Color Schemorator tool.\n  -h   Display this help message.\n\nExample:\n  csor -m generate -p colors.txt -i original-image.jpg -o new-image.jpg\n  csor -m extract -i original-image.jpg -P palette.txt\n```\n\n## Install\n\nTo install the Color Schemorator application,\nfollow these steps (note `go` and `make` need to be installed first):\n\n1) Clone the repository:\n```\ngit clone https://github.com/vannrr/color-schemorator.git\ncd color-schemorator\n```\n\n2) Build and install:\n```\nmake install\n```\nBy default, the application will be installed to ~/bin/.\nIf you wish to change the installation directory,\nyou can modify the INSTALL_DIR variable in the Makefile:\n```\nINSTALL_DIR := /your/custom/path/\n```\n3) Verify the installation:\n```\n ~/bin/csor -v\n```\nReplace ~/bin/ with your custom path if you changed the INSTALL_DIR.\n\n## Example Images\n\n| Before | After |\n|--------|-------|\n| \u003cimg src=\"/image-handling/test-img-input.png?raw=true\" width=\"300\"/\u003e | \u003cimg src=\"/image-handling/test-img-output-expect.png?raw=true\" width=\"300\"/\u003e |\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvannrr%2Fcolor-schemorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvannrr%2Fcolor-schemorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvannrr%2Fcolor-schemorator/lists"}