Skip to content

Go CLI application that returns the X dominant colors in a provided image. (Soon to be dependency-free!)

License

Notifications You must be signed in to change notification settings

Reishimanfr/color-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple CLI program written in go that returns the dominant colors in an image.

How to run

Warning

This tutorial assumes you're on linux.

  1. Clone the repo
git clone https://github.com/Reishimanfr/color-finder
  1. cd into the newly created directory
cd color-finder
  1. Build the source code
go build
  1. Add execute permissions to binary
chmod +x ./color-finder

Available flags

--path - Path to the file to be analyzed by color finder (required)
--return-amount - Amount of dominant colors to be returned (default: 5)
--scaling - How much should the input image be scaled down by? (default: 1/4, higher = accurate but slower)
--threads - Amount of threads to be used by the program. More = faster but more CPU and RAM usage. (default: 20)
--debug - Should additional data useful for debugging be shown? (default: false)

How it looks

image

About

Go CLI application that returns the X dominant colors in a provided image. (Soon to be dependency-free!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages