from optimize_images import worker
worker("path/to/folder", quality=40)
example 2
from optimize_images import worker
worker("path/to/image", max_w=1000, max_h=700)
I changed the order of the returning values of 'get_args' _(in argumentparser.py) so that the 'get_args()'(in main.py) return values were coded to be tuple type to the 'args' variable. It is now easier to call 'worker' function without changing the order of values.
Changed init.py and now user can import 'worker' without mentioning like this.
Usage
options
example 1
example 2
I changed the order of the returning values of 'get_args' _(in argumentparser.py) so that the 'get_args()' (in main.py) return values were coded to be tuple type to the 'args' variable. It is now easier to call 'worker' function without changing the order of values.
Changed init.py and now user can import 'worker' without mentioning like this.
after changed the init.py