Photoshop batch resize action/script ?

Discussion in 'Graphics Programs and Photo Gallery' started by mox, Aug 3, 2005.

  1. mox

    mox TPF Noob!

    Joined:
    Jun 19, 2004
    Messages:
    52
    Likes Received:
    0
    Location:
    Montreal
    I'm trying to make an action script for batch resizing (Adding my signature to all the photos too)

    The problem that I have, when I record my action.. if I do a Image\Resize for a landscape photo, when the software opens a portrait it's not resizing properly

    Is there any way to do 'conditions' with action scripts ?
     
  2. hawkriver

    hawkriver TPF Noob!

    Joined:
    Oct 7, 2009
    Messages:
    1
    Likes Received:
    0
    Well, you can cause the action to pause at a particular step for user input if you click on the little box to the left of the step in the action script, but you can't automate it.

    You have basically two choices: make two actions, one for landscape and one for portrait and select only the appropriate files (through bridge for instance) to process with each one; or you can write a script that can detect the aspect ratio and take appropriate action on the resize.
     
  3. Big Mike

    Big Mike I am Big, I am Mike Staff Member Supporting Member

    Joined:
    Dec 16, 2003
    Messages:
    33,817
    Likes Received:
    1,811
    Location:
    Edmonton
    Can others edit my Photos:
    Photos NOT OK to edit
    There is a 'fit' command somewhere. You should be able to incorporate that into your script so that any image will 'fit' into the size specified.
     
  4. Flash Harry

    Flash Harry TPF Noob!

    Joined:
    Jun 26, 2006
    Messages:
    1,918
    Likes Received:
    1
    Location:
    Durham, UK
    Can others edit my Photos:
    Photos NOT OK to edit
    I do one action for each type frame, I've had PS make f-ups when doing batch actions before, just have a landscape and a portraits folder to run the separate action on. H
     
  5. MountainPaul

    MountainPaul TPF Noob!

    Joined:
    Feb 14, 2007
    Messages:
    30
    Likes Received:
    0
    Can others edit my Photos:
    Photos OK to edit
    If you are using Photoshop and Version 7 or greater you can use scripts as well as actions.
    Here is a very simple script to run a different action depending on orientation.

    var doc = activeDocument;
    if(doc.width.value>doc.height.value){//Landscape
    doAction("Action Name", "Action Set");
    }else{//Portrait
    doAction("Action Name", "Action Set");
    }
     
  6. airforce1

    airforce1 TPF Noob!

    Joined:
    Oct 9, 2009
    Messages:
    1
    Likes Received:
    0
    Can others edit my Photos:
    Photos OK to edit
    I recommend below steps if you want nice uniform looking:
    1.creating a square canvas firstly for holding resized photos
    2.using a transparent canvas in the same size as above and put your watermark as your want
    2.resize the photos and ctrl+a and ctrl+c
    3.paste the resized photos into the square canvas and it would be centered automatically
    4.you could also paste your watermark now
    4.save or export

    All above actions are recordable in one batch process.

    Wish this help,
     
  7. digitalpbk

    digitalpbk TPF Noob!

    Joined:
    Nov 4, 2009
    Messages:
    1
    Likes Received:
    0
    Can others edit my Photos:
    Photos OK to edit
  8. KmH

    KmH Helping photographers learn to fish Supporting Member

    Joined:
    Apr 9, 2009
    Messages:
    38,216
    Likes Received:
    5,002
    Location:
    Iowa
    Can others edit my Photos:
    Photos OK to edit
    This thread originated in 2005! ;)
     

Share This Page

Search tags for this page
photoshop action square canvas
,
photoshop batch change canvas size
,

photoshop batch resize canvas

,
photoshop batch resize script
,
photoshop cs3 resize canvas script
,

photoshop resize script

,

photoshop resizing scripts

,
photoshop script resize
,

photoshop square canvas

,
script for squaring an image in photoshop