How to detect orentation of an image inan action

G
Posted By
Grebo
Feb 27, 2007
Views
158
Replies
1
Status
Closed
I want to write an action that works on and can detect if the image is landscape or portrait.

The Break down is

If portrait then set the image height to 400px
If portrait then set the image width to 400px

Set the canvas size = 410 X 410

Then there is other processing to be done…
The rest I can do no Problems

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

E
edjh
Feb 27, 2007
wrote:
I want to write an action that works on and can detect if the image is landscape or portrait.

The Break down is

If portrait then set the image height to 400px
If portrait then set the image width to 400px

Set the canvas size = 410 X 410

Then there is other processing to be done…
The rest I can do no Problems

You can do this with File>Automate>Fit Image. That’s what it’s for. You can put it into an action.

I am also told there is an Image Processor script in CS2 that does this, but I don’t have it so I don’t know.


Comic book sketches and artwork:
http://www.sover.net/~hannigan/edjh.html
Comics art for sale:
http://www.sover.net/~hannigan/batsale.html

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections