resize picture based on specified dimensions
This commit is contained in:
4
main.go
4
main.go
@ -13,8 +13,12 @@ func main() {
|
||||
flag.StringVar(&ConfigRegister.OutputDir, "output", "./", "Output directory")
|
||||
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.Parse()
|
||||
|
||||
// set output's width and height
|
||||
ConfigRegister.SetOutputDimensions()
|
||||
|
||||
// get two random images and load them
|
||||
var img1 image.Image
|
||||
if ConfigRegister.BaseImage != "" {
|
||||
|
||||
Reference in New Issue
Block a user