Auto rotate and autoresize images in mass with Python and PIL

This is what you need:



For example, rotate all the images in /path/to/images/directory and resize them to 200x300 (W x H)
$ python img_utils.py --dir /path/to/images/directory --resize 200 300