1
0

grayscale option

This commit is contained in:
2022-05-01 17:49:51 +02:00
parent 1138d11923
commit a0fbe438d4
3 changed files with 9 additions and 3 deletions

View File

@ -14,6 +14,7 @@ func main() {
flag.StringVar(&ConfigRegister.InputDir, "input", "/home/gator/Photos", "Input directory. Where to look the images from")
flag.StringVar(&ConfigRegister.BaseImage, "base-img", "", "Path to the base image to work with. Random image if not set")
flag.StringVar(&ConfigRegister.Dimensions, "dimensions", "800x600", "Out image dimensions. <width>x<height>")
flag.BoolVar(&ConfigRegister.Grayscale, "grayscale", false, "Output image in shade of gray (around 50)")
flag.Parse()
// set output's width and height