How can I automatically rotate images based on EXIF data prior to image styles being applied? I have a website where users can upload pictures of themselves.  Many of these pictures are taken with  mobile phones and as a result a lot of them are shot such that the picture is vertical, but it is uploaded as horizontal because Drupal ignores the EXIF data.  This can be fixed using the Image Cache Actions module (autorotate submodule), but if I do so, this breaks the Manual Crop module, which I use to trim the pictures as necessary.

Is it possible to somehow have Drupal automatically rotate all images upon upload based on their EXIF data if available, such that image styles would be applied to the rotated image, not the original image?
Another option is to process the images before they are uploaded. I wrote a windows script to do this 5+ years ago. It still works, but I won't be offering any support for it.
http://www.autoitscript.com/forum/topic/85891-imagemagick-batch-jpg-processor/