There are lots more test cases here now, too.

These are the 8 possible EXIF rotation/mirroring combinations, in a loop for resizing by different amounts.