Identify the orientation of the image
Hi
I have a folder with hundreds of images...some in vertical (portrait) and some in horizontal orientation (landscape). I want to standardize all to vertical !!!
So after opening manually the image (or by using the Batch command) I´d need a script that does it:
1) Look at the current active image and if the image is in horizontal orientation (landscape) then rotate it 90º to become vertical (portrait)
2) If the image is already vertical then do not do anything. Leave as it.
End.
It´s just a script to identify which images are horizontal and rotate it.
The process of opening images and saving I can do manually or by using the batch Photoshop command (so I attach the script with an normal action). These taks do not need to be in the script.
Could anyone help me to write this script?
Thank you a lot
Gustavo.
