Luminous Landscape Forum

Raw & Post Processing, Printing => Digital Image Processing => Topic started by: Morgan_Moore on May 26, 2007, 02:30:09 am

Title: IF in PS actions
Post by: Morgan_Moore on May 26, 2007, 02:30:09 am
I have PS actions to downsize my images say for use on the web or create A4 size jpgs

But some of my images ar portrait and some are landscape

currently I spin em all to be LS and run the action then spin again

I woud like to write a PS action of the following nature...

==

Image size

IF image height IS GREATER THAN image width then

image height = 600 PXL

ELSE

image width = 600 PXL

END IF

==

ANy thoughts..

SMM
Title: IF in PS actions
Post by: jjj on May 26, 2007, 05:43:28 am
Go to Automate/Fit Image and you can resize landscape or portrait images to a specific size without worrying about what orientation they are. As that is what you seem to be doing.If not ignore my post.
Title: IF in PS actions
Post by: Tim Gray on May 26, 2007, 08:52:12 am
What JJJ said.  You'd have to write a script to get if's in an action.

Another easy way to batch for the web is in Bridge - tools, photoshop, image processor

You have the option to run an action, but, if I recall, the default that comes with PS runs the action at the beginning before the image is resized.  Russell Bown  has an amended version that runs the action at the end - which is when you'd want to sharpen.
Title: IF in PS actions
Post by: Morgan_Moore on May 26, 2007, 12:08:38 pm
Quote
What JJJ said.  You'd have to write a script to get if's in an action.

Another easy way to batch for the web is in Bridge - tools, photoshop, image processor

You have the option to run an action, but, if I recall, the default that comes with PS runs the action at the beginning before the image is resized.  Russell Bown  has an amended version that runs the action at the end - which is when you'd want to sharpen.
[a href=\"index.php?act=findpost&pid=119698\"][{POST_SNAPBACK}][/a]

So how/where do you write scripts (am am good at writing VB code so if I saw a few actions as script im sure I could get the hang of it)

I am batching from 22mp (64 mb tif) down to A4 jpg (300dpi 28cm) suitable for newspaper repro

SMM
Title: IF in PS actions
Post by: bjanes on May 26, 2007, 03:45:37 pm
Quote
So how/where do you write scripts (am am good at writing VB code so if I saw a few actions as script im sure I could get the hang of it)

I am batching from 22mp (64 mb tif) down to A4 jpg (300dpi 28cm) suitable for newspaper repro

SMM
[a href=\"index.php?act=findpost&pid=119716\"][{POST_SNAPBACK}][/a]

A good place to start is to look at the scripting guided installed in the Photoshop folder. PS supports Applescript, Javascript, and VB. Some sample scripts are also included.

Bill