{"id":16734990,"url":"https://github.com/skekre98/picture-compressor","last_synced_at":"2026-05-17T20:03:32.617Z","repository":{"id":146378182,"uuid":"186912099","full_name":"skekre98/Picture-Compressor","owner":"skekre98","description":"A tool for compressing images using unsupervised machine learning","archived":false,"fork":false,"pushed_at":"2020-11-19T00:33:50.000Z","size":583,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T09:52:08.268Z","etag":null,"topics":["kmeans-clustering","scikit-learn"],"latest_commit_sha":null,"homepage":null,"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/skekre98.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":"2019-05-15T22:38:22.000Z","updated_at":"2020-11-19T00:33:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"795f69c8-ac29-4983-af3c-58ca94e9a8ad","html_url":"https://github.com/skekre98/Picture-Compressor","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"0a141b78f6621e3cded95f87d7192370e6be24ad"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skekre98%2FPicture-Compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skekre98%2FPicture-Compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skekre98%2FPicture-Compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skekre98%2FPicture-Compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skekre98","download_url":"https://codeload.github.com/skekre98/Picture-Compressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790944,"owners_count":20348378,"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":["kmeans-clustering","scikit-learn"],"created_at":"2024-10-13T00:04:34.549Z","updated_at":"2026-05-17T20:03:27.588Z","avatar_url":"https://github.com/skekre98.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Picture-Compressor\nA tool for compressing images using unsupervised machine learning\n\n\n## K-means Clustering\n\nK-means is an unsupervised algorithm that makes inferences from datasets using only input vectors without referring to known, or labelled, outcomes. K-means algorithm identifies k number of centroids, and then allocates every data point to the nearest cluster, while keeping the centroids as small as possible. In reference to this tool, your k centroids are the number of colors that are selected are majority colors. For example, if k were to be 5, then the five most prominent colors would show up in your compressed image. \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Dependencies\n\nRuns on Python 3.6+\n* [NumPy](https://www.numpy.org) - package for scientific computing with Python\n* [Pillow](https://pillow.readthedocs.io/en/stable/) - Python Imaging Library\n* [scikit-learn](https://scikit-learn.org/stable/) - machine learning library for implementing KMeans\n\n## Usage\n\n```\npython compress.py [image file]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskekre98%2Fpicture-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskekre98%2Fpicture-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskekre98%2Fpicture-compressor/lists"}