Sometimes, photographs in a jpg format do not display with the correct orientation when using some programs or devices. This is because there is a field in the jpg file (in the exif portion) which describes a rotation of the photo in addition to the orientation of the photo in the jpg file. Not all programs support this field, and those that do may not support it correctly. See http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ for more detailed information on this problem.
This program can be used to strip the orientation field in the exif from the jpg file so that the photo will display the the same way in all programs. In addition, a loss-less jpg rotation of the actual photo to match the orientation specified by the field that is stripped off is performed. The files that are fixed in this manner are displayed, and the user has the option to perform further manual loss-less jpg rotations to get the orientation of the photo perfect. A loss-less rotation of a jpg file is much better than using most photo editing programs to perform this rotation, since those programs will generally perform a decode and encode of the jpg file which results in a quality degradation of the image.
This program works on all the jpg files in an entire directory at a time.