I want to losslessly rotate all JPEGs that have been shot in portrait mode and remove the rotate flag, so iPhoto doesn't stops rotating them. Any easy way to do that?
You must have both jhead and jpegtran installed. jhead can be found here (OSX binary available). jpegtran can be found here (download the source and compile it using