Compress PNG with TinyPNG in terminal.There is no need to configure the API.But the key needs to be set when the image is in high concurrency(Colleagues handle more than 20)
$ npm install -g tiny-png-zx
Usage: tinypng [options]
Options:
-k, --api-key Set default TinyPNG API key.
-a, --all Modify all images under the file.
-c, --current Current level directory
-p, --part Processing of specified files,use: tinypng -p [image.png|*.png|*.jpeg|*.jpg]
-h, --help This message.
-v, --version Show version.