kmeans-colors
k-means clustering library and binary to find dominant colors in images
By okaneco. Free and open source for Windows, macOS, Linux. Latest version 0.7.1, released 2025-09-08.
Is kmeans-colors safe?
Trust score 40/100: Low trust. Little evidence that this is safe or maintained. Only install it if you know the project, ideally in a sandbox or virtual machine.
- Downloads come straight from the project's own GitHub releases
- Publishes checksums so you can verify the files
- Around since 2020
- Listed in Scoop's curated Extras bucket
Things to watch:
- Small community (175 stars): fewer people are watching the code
- Maintained by one or two people: updates depend on them
- No code changes in over a year
- Weak automated security checks (OpenSSF Scorecard 2.6/10)
175 GitHub stars · 1.5k downloads · 2 contributors · OpenSSF Scorecard 2.6/10.
Download kmeans-colors
- kmeans_colors-0.7.1-linux-x86_64.tar.gz (Linux, 719 KB)
- kmeans_colors-0.7.1-macos-aarch64.tar.gz (macOS, 651 KB)
- kmeans_colors-0.7.1-windows-x86_64.tar.gz (Windows, 610 KB)
scoop bucket add extras; scoop install extras/kmeans-colors
Downloads come straight from github.com/okaneco/kmeans-colors.
About kmeans-colors
Calculate the k average colors in an image using k-means clustering with k-means++ initialization.
kmeans-colors wraps around a generic [k-means library][lib] that supports Lloyd's and Hamerly's algorithms for arbitrary data types. k-means can find the dominant colors or color palette of an image. Other applications in this crate are binarization and "color style" transfer.
To use as a library, add the following to your Cargo.toml; add the palettecolor feature to enable palette color types. Executable builds can be found at https://github.com/okaneco/kmeans-colors/releases.
k-means clustering works by starting with an initial random guess of the k number of colors in the image called centroids. For each step, every pixel in the image is traversed to find what centroid is closest to it in color. Then, the centroids calculate the average of all the colors close to them and move to that color. This process repeats until the centroids stop moving or the maximum step count is reached.
Similar apps
- ImageMagick: ImageMagick is a free, open-source software suite for creating, editing, converting, and displaying images. It supports 200+ formats and off (High trust, 82/100)
- RapidRAW: A beautiful, non-destructive, and GPU-accelerated RAW image editor built with performance in mind. (Good, 67/100)
- Final2x: a cross-platform image super-resolution tool (Good, 68/100)
- Crunch: Insane(ly slow but wicked good) PNG image optimization (Low trust, 38/100)
- Jpegview: Fork of JPEGView by David Kleiner - fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a min (Use caution, 49/100)
- PhotoDemon: A free portable photo editor focused on pro-grade features, high performance, and maximum usability. (Use caution, 54/100)
Questions
Is kmeans-colors safe to download?
kmeans-colors has an OpenShelf trust score of 40/100 (Low trust). Little evidence that this is safe or maintained. Only install it if you know the project, ideally in a sandbox or virtual machine. Main thing to watch: Small community (175 stars): fewer people are watching the code.
Is kmeans-colors free?
Yes. kmeans-colors is free and open source under the Apache-2.0 license. The source code is public at github.com/okaneco/kmeans-colors.
Does kmeans-colors work on Windows, macOS and Linux?
kmeans-colors is available for Windows, macOS, Linux. Ready-made downloads exist for Windows, macOS, Linux.
How do I install kmeans-colors?
Download the official file from the project's GitHub releases (for example kmeans_colors-0.7.1-linux-x86_64.tar.gz) and run it. Or install it with: scoop bucket add extras; scoop install extras/kmeans-colors.
What are alternatives to kmeans-colors?
Similar open-source apps: ImageMagick (trust 82/100), RapidRAW (trust 67/100), Final2x (trust 68/100), Crunch (trust 38/100).