Skip to content

maobe2500/Color_replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Color_replacer

A image color replacer thant takes in an image and switches the rgb colors based on various settings and the writes these changes to a copy of the image.

Usage:

./image_color_replacer.py [filename] [color-to-replace] [color-to-replace-with] [highliting-code]

The options for color are r, g and b.

The options for highliting are:
  
  t - true. Increases the color value of the color being changed to realtive to the other colors.
  ts - true, soft. Increases the color being changed to but half the reltive ammout.
  td - true, double. Increases the color being changed to but doubles the reltive ammont.
  f - false. Switches the colors without increasing the relative ammont.

Examples:

If we want to switch all the blue in an image with an equal red ammunt we write:

    ./image_color_replacer.py img.jpg b r f

If we want to switch all the green in an image with a slightly increased blue ammunt we write:

    ./image_color_replacer.py img.jpg g b ts

About

A image color replacer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages