Skip to content
/ fearg Public

Fearg is a command line image tool to extract colors and image metadata.

Notifications You must be signed in to change notification settings

hvpkod/fearg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fearg

Fearg (Färg) is a python command line tool to extract color information from images. The tool extract the 10 most common colors and outputs a json summary as well as color sample card along with resolution and color data. Fearg supports both batch (directories) of images and single images.

Installation

Clone the repository and make sure you have the correct dependencies installed.

pip install click
pip install colr
pip install pillow

Usage

python fearg.py (-v) (-nojson) (-nopalette) [directory]/[file]

Supports following modes:

  • v, verbose: Shows detailed info and metadata. Default for single images.
  • nopalette: Skipping creating color palette sample card. Default created a colorexport directory.
  • nojson: No json data. Default creates a _imgdata.json file in root folder.
  • color,c: Ignore white and black img. Exclued for grayscales and images with less ten colors.

Fearg support following formats: jpg, jpeg and png.

Examples

Show the 3 dominate colors for each image in the input directory

Directory

Show the 10 dominate colors and metadata for single image input or directory with verbose mode

Singe file

Create a color palette samle image with the 10 most dominate colors, percentage of dominace

Palette

License

MIT

About

Fearg is a command line image tool to extract colors and image metadata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages