Pages: [1]   Go Down

Author Topic: IF in PS actions  (Read 2442 times)

Morgan_Moore

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2356
    • sammorganmoore.com
IF in PS actions
« 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
Logged
Sam Morgan Moore Bristol UK

jjj

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4728
    • http://www.futtfuttfuttphotography.com
IF in PS actions
« Reply #1 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.
Logged
Tradition is the Backbone of the Spinele

Tim Gray

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2002
    • http://www.timgrayphotography.com
IF in PS actions
« Reply #2 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.
Logged

Morgan_Moore

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2356
    • sammorganmoore.com
IF in PS actions
« Reply #3 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
Logged
Sam Morgan Moore Bristol UK

bjanes

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3387
IF in PS actions
« Reply #4 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
Logged
Pages: [1]   Go Up