Need photoshop to automatically rotate items to make smallest width
Hi Guys, I originally posted this on the photoshop forum but they suggested the scripting community might be more helpful. I am attempting automatically rotate item (layer) so that the width of the item is at its narrowest.
So visually I want to go from this...
to this
my starting point is this..
As you can see from the layers it is an item photographed on a green screen.
My reason for attempting this is to achieve a foolproof auto-rotate action that can be applied to a folder of images. I have played around with various auto rotate tools is CS, LR and even Elements. They work on 95% of the cases but in a few cases it fails (maybe the lines within the image itself are effecting the rotation.
I would also like a maximum amount of rotation to be set. Some items are landscape and some portrait and if any amount of rotation was permitted it would make all landscape images portrait.
Would it be possible to use photoshop scripts to achieve this?
Thanks, James



