The aim is to be able to auto rotate all images within a directory, based upon their EXIF data.
I wanted to create a file, similar to that in use for converting mpg to mp3
I had found reference to the use of the command jhead.
For my default Debian installation jhead was not installed by default. To add jhead from the command line execute:
apt-get install jhead
I created a file called imagerotate, setting the file as Executable with chmod a+x imagerotate
The contents of the imagerotate file are given below. It assumes that the images to be rotated are in the child directory called modified.
#!/bin/bash for filename in "modified/*.JPG" do jhead -autorot $filename done


