It will cut the pic to 900*1600, it's based on the FFmpeg.
sh cut-pic.sh
Then type your pic's folder
/user/XXXX/pics/
It will auto-cut pic and rename the pics.
Bash tutorial is the note base these articles Bash tutorial This is some useful tips for bash Read line in bash This is the original article code https://github.com/wangdoc/bash-tutorial