🎨
上传图片以提取其颜色
从任意图片提取主色调,获取 HEX 色板及占比。 100% 本地处理
Each image is downsampled to at most 200×200 pixels for speed, then every remaining pixel is fed into a median-cut algorithm: pixels are recursively split along the channel with the widest range, at its median, until the requested number of color buckets is reached. Each bucket is averaged into one color and ranked by how many pixels it represents.