{"id":20433604,"url":"https://github.com/alwalxed/dominant-color-image-sort","last_synced_at":"2026-06-06T17:31:17.911Z","repository":{"id":243574143,"uuid":"812696199","full_name":"alwalxed/dominant-color-image-sort","owner":"alwalxed","description":"Organizes images into folders based on their dominant color.","archived":false,"fork":false,"pushed_at":"2024-06-23T10:05:40.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T19:17:13.459Z","etag":null,"topics":["color-analysis","computer-vision","data-sorting","image-processing","machine-learning","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/alwalxed.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-06-09T16:13:14.000Z","updated_at":"2024-11-11T04:28:04.000Z","dependencies_parsed_at":"2024-06-23T08:28:27.313Z","dependency_job_id":"14df8fc6-6398-4c35-bc4d-2836085ea299","html_url":"https://github.com/alwalxed/dominant-color-image-sort","commit_stats":null,"previous_names":["alwalxed/dominant-color-image-sort"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fdominant-color-image-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fdominant-color-image-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fdominant-color-image-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fdominant-color-image-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alwalxed","download_url":"https://codeload.github.com/alwalxed/dominant-color-image-sort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241976150,"owners_count":20051586,"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":["color-analysis","computer-vision","data-sorting","image-processing","machine-learning","python"],"created_at":"2024-11-15T08:19:56.003Z","updated_at":"2026-06-06T17:31:17.695Z","avatar_url":"https://github.com/alwalxed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dominant Color Image Sort\n\nA handy Python script that takes a folder of images and sorts them into named folders based on their dominant color. Useful if you want to group random images by a single pattern, in this case: their dominant color.\n\n\n## 🌟 Features\n\n- Supports multiple image formats: PNG, JPG, JPEG, BMP, GIF, TIFF.\n- Uses k-means clustering to determine the dominant color.\n- Maps the dominant color to the closest predefined color name.\n- Organizes images into folders named after the dominant color.\n\n\n## 💡 Usage\n\nTo sort images by their dominant color and move them to corresponding folders, run the following command:\n\n```\npython -m image_color_sorter.sorter /path/to/input/folder --destination_folder_base /path/to/output/folder\n```\n\n\n## 📋 Example\n\n```\npython -m image_color_sorter.sorter ./images --destination_folder_base ./sorted_images\n```\n\nThis command will process all images in the ./images folder and sort them into subfolders in the ./sorted_images directory based on their dominant colors.\n\n\n## 🔍 Installation\n\nClone the repository:\n```\ngit clone https://github.com/alwalxed/dominant-color-image-sort.git\ncd dominant-color-image-sort\n```\n\nInstall the required dependencies:\n```\npip install -r requirements.txt\n```\n\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/alwalxed/dominant-color-image-sort/blob/main/LICENSE) file for details.\n\n\n## 🤝 Contributing\n\nContributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or create a pull request.\n\n1. Fork the repository.\n2. Create your feature branch.\n3. Commit your changes.\n4. Push to the branch.\n5. Open a pull request.\n6. Your contribution will be reviewed, and once approved, it will be merged into the main branch.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fdominant-color-image-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falwalxed%2Fdominant-color-image-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fdominant-color-image-sort/lists"}