simple usage
./bin/app <image-path1> <image-path2>
all pics from directory
find <dir-path> -maxdepth 1 -type f | xargs -I {} ./bin/app {}
Usage of ./bin/app:
-h show help
-mh uint
height in pixels (default 512)
-mw uint
width in pixels (default 512)
-o string
output directory (default "resized")
GET /
Params:
- height uint
height in pixels
- width uint
width in pixels
- save-proportions bool
save proportions
Multipart form data
- "file"