I am auto-inserting images into my document. Some of them are portrait and some of them are landscape. The images that are landscape (length > height) I need to rotate them 90 degrees, make them the original size and align them vertically / horizontally on the page. Any suggestions on how to go through all the slides and if an image is landscape to auto rotate / do above mentioned?

Thanks!