Do you want to add a true/false for auto rotating the images to the correct orientation, your current resizes don't maintain EXIF so the output thumbs are sometimes orientated incorrect.
There are always ways to retain EXIF which might also allow the devices to draw correct orientation
Lots of ways to skin this cat, i just did the following which worked for me, but not sure what it would break on.
# shutil.copyfile(photo, new_original_photo)
im = Image.open(photo)
im = ImageOps.exif_transpose(im)
im.save(new_original_photo)
Do you want to add a true/false for auto rotating the images to the correct orientation, your current resizes don't maintain EXIF so the output thumbs are sometimes orientated incorrect.
There are always ways to retain EXIF which might also allow the devices to draw correct orientation
Lots of ways to skin this cat, i just did the following which worked for me, but not sure what it would break on.