Rotate landscape Images 90°

Rotate all landscape images by 90° to get the right orientation of the image. 
sips is part of Mac OS X.
Might be that the syntax of the command can be improved. I don't know if all those backslashes and curly braces are necessary.