CLI

Python script to transfer alpha values from one image (goal) to another (base). Additionally, you can also tint the base image based on the majority colour of the goal image, or merge the two together.

usage: transfer.py [-h] [-bf BASE_FILTER] [-gf GOAL_FILTER] [-e [EXCLUDE [EXCLUDE ...]] | -i [INCLUDE [INCLUDE ...]]] [-o OUT] [-s SIZE [SIZE ...]] [-m MERGE] [-v] [-b BRIGHTNESS] [-ct CONTRAST]
                   [-sh SHARPNESS] [-t] [-c COLOUR]
                   base goal

Positional Arguments

base

Image you want to see edited.

goal

Image you want to take the alpha value and tint from.

Named Arguments

-o, --out

Base directory where the output is saved.

Default: “out”

-s, --size

Width and height of the resulting image.

-m, --merge

Merge with goal in percent from 0-100.

Default: 0

-v, --verbose

Default: False

Filter the source images in a folder.

-bf, --base_filter

Filter the base image folder.

Default: “*”

-gf, --goal_filter

Filter the goal image folder.

Default: “*”

-e, --exclude

Exclude a list of file names.

Default: []

-i, --include

Include only a list file names.

Default: []

Enhance various aspects of the image.

-b, --brightness

Improve brightness with an value between 0.0 and infty. 0.0 is black, 1.0 is normal and everything above is brighter.

Default: 1.0

-ct, --contrast

Improve contrast with an value between 0.0 and infty.

Default: 1.0

-sh, --sharpness

Improve sharpness with an value between 0.0 and infty.

Default: 1.0

Tint the base images with the majority colour of the goal image or a given colour.

-t, --tint

Add tint from the goal image.

Default: False

-c, --colour

Specify a colour.