{"id":13611317,"url":"https://github.com/Kaesebrot84/iris","last_synced_at":"2025-04-13T04:33:53.843Z","repository":{"id":50662176,"uuid":"479781599","full_name":"Kaesebrot84/iris","owner":"Kaesebrot84","description":"A cli tool that creates color palettes from images using the median cut algorithm.","archived":false,"fork":false,"pushed_at":"2022-11-02T17:06:23.000Z","size":1020,"stargazers_count":42,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T14:03:03.988Z","etag":null,"topics":["cli","image-processing","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/cliris","language":"Rust","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/Kaesebrot84.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":"2022-04-09T16:25:32.000Z","updated_at":"2024-09-10T15:03:13.000Z","dependencies_parsed_at":"2023-01-20T21:18:51.259Z","dependency_job_id":null,"html_url":"https://github.com/Kaesebrot84/iris","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/Kaesebrot84%2Firis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaesebrot84%2Firis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaesebrot84%2Firis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaesebrot84%2Firis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kaesebrot84","download_url":"https://codeload.github.com/Kaesebrot84/iris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223568174,"owners_count":17166612,"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","image-processing","rust"],"created_at":"2024-08-01T19:01:54.094Z","updated_at":"2024-11-07T18:30:17.938Z","avatar_url":"https://github.com/Kaesebrot84.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Iris\n\n[![Rust](https://github.com/Kaesebrot84/iris/actions/workflows/Build.yml/badge.svg)](https://github.com/Kaesebrot84/iris/actions/workflows/Build.yml)\n[![crates.io](https://img.shields.io/crates/v/iris-lib.svg)](https://crates.io/crates/cliris)\n\nA command line tool that creates color palettes from images using the [median\ncut algorithm](https://en.wikipedia.org/wiki/Median_cut).\n\n## Usage\n\n```sh\n$ cliris --help\ncliris 0.2.0\nAndrej G. \u003cREDACTED@gmail.com\u003e\nA cli tool that creates color palettes from images using the median cut algorithm.\n\nUSAGE:\n    cliris [OPTIONS] --file-name \u003cFILE_NAME\u003e [OUTPUT_FORMAT]\n\nARGS:\n    \u003cOUTPUT_FORMAT\u003e    Desired data file format to be written [default: none] [possible values:\n                       none, html, json, csv]\n\nOPTIONS:\n    -f, --file-name \u003cFILE_NAME\u003e          Target image file name\n    -h, --help                           Print help information\n    -i, --iterations \u003cITERATIONS\u003e        Number of iterations [default: 1]\n    -o, --out-filename \u003cOUT_FILENAME\u003e    File path the file should be written to [default: palette]\n    -V, --version                        Print version information\n```\n\n### Installation\n\n```bash\ncargo install cliris\n```\n\n### Example\n\n```sh\n$ cliris -f peppers.png -i 3 html\n\nGenerating palette...\nFinished generating palette in 75 ms.\n\n{ R: 191, G: 207, B: 141, A: 255 }\n{ R: 139, G: 187, B: 108, A: 255 }\n{ R: 171, G: 185, B: 76, A: 255 }\n{ R: 118, G: 159, B: 71, A: 255 }\n{ R: 197, G: 60, B: 50, A: 255 }\n{ R: 186, G: 41, B: 34, A: 255 }\n{ R: 117, G: 77, B: 45, A: 255 }\n{ R: 78, G: 7, B: 6, A: 255 }\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"example_output.png\" alt=\"example_output_image\" width=\"400\"\u003e\n\u003c/p\u003e\n\n### Library\n\nThis project uses the [iris-lib](https://crates.io/crates/iris-lib) crate, which performs this algorithm as a stand-alone library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaesebrot84%2Firis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaesebrot84%2Firis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaesebrot84%2Firis/lists"}