Settings

Theme

Show HN: Swatchify – CLI to get a color palette from an image

james-see.github.io

6 points by jamescampbell a month ago · 2 comments · 1 min read

Reader

A fast, cross-platform CLI tool that extracts dominant colors from images using k-means clustering.

goh-chunlin a month ago

This looks clean. I appreciate the pkg decoupling.

Regarding the server mode (swatchify serve): Does the decoding step have a hard memory limit or dimension cap? Since image.Decode expands compressed files into full bitmaps, I am wondering if a large resolution upload (like a 4k print asset) could OOM-kill the container before the downscaler kicks in.

halfdaft a month ago

Will definitely be using this - thanks!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection