This is image resize utility. You can set new custom width and height of image or use scale parameter to save proportion. Original image doesn't changed, new one created in the directory which you can also set.
Usage description.
positional arguments:
filename input source filename
optional arguments:
-h, --help show this help message and exit
-w [WIDTH], --width [WIDTH]
set new width
-H [HEIGHT], --height [HEIGHT]
set new height
-s [SCALE], --scale [SCALE]
set new image scale size
-o [OUTPUT], --output [OUTPUT]
set output path for result image
The code is written for educational purposes. Training course for web-developers - DEVMAN.org