Command-line image resizer and rotator for JPEG and PNG images. More information: https://github.com/jarun/imgp.
imgp -x 1366x1000 path/to/directory path/to/file
imgp -x 75 -w path/to/file
imgp -o 90 path/to/file