Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 639 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 639 Bytes

Image Resizer

Console

Usage

simple usage

./bin/app <image-path1> <image-path2>

all pics from directory

find <dir-path> -maxdepth 1 -type f | xargs -I {} ./bin/app {}

Help

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")

Rest API

GET /
Params:
  - height           uint
        height in pixels
  - width            uint
        width in pixels
  - save-proportions bool
        save proportions 

Multipart form data
- "file"