Skip to content

Jasu/recolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Recolor

A command-line tool to recolor single-colored images.

Dependencies

Due to the dependency to scikit-image, and consequentially to scipy and numpy, a ridiculous number of dependencies is required:

  • Python 3.3 (older versions might work)
  • scipy: From OS package manager, eg. port install py33-scipy
  • scikit-image: pip install scikit-image

Usage

Example 1

recolor --color #FF0000 input1.png input2.png

Creates input1.out.png and input2.out.png. If the files exists, creates input1.out.1.png and input2.out.1.png instead (or ones with the next available number.)

The output files have their colors shifted so that the most saturated color of the image is now red.

Example 2

recolor --outdir=recolored --color #FF0000 input1.png input2.png

Creates recolored/input1.png and recolored/input2.png. If the files exist, prompts for overwrite.

The output files have their colors shifted so that the most saturated color of the image is now red.

Example 3

recolor --valuefactor 0.5 --outdir=recolored --color #FF0000 input1.png input2.png

Valuefactor changes the value (luminosity) of the image towards the value of --color. Valuefactor 1.0 changes the value completely to it, but may result in artifacts.

Creates recolored/input1.png and recolored/input2.png. If the files exist, prompts for overwrite.

The output files have their colors shifted so that the most saturated color of the image is now red.

About

Recolor monochromatic images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published