+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    No longer a newbie, moving up!
    Join Date
    Jun 2004
    Location
    Montreal
    Posts
    52
    My Gallery
    (0)
    Liked
    0 times

    Photoshop batch resize action/script ?

    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 ?
    --Ben - www.mox.ca
    Canon 10D

  2. # ADS

  3. #2
    TPF Noob!
    Join Date
    Oct 2009
    Posts
    1
    My Gallery
    (0)
    Liked
    0 times

    No conditionals in actions

    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.

  4. #3
    I am Big, I am Mike Site Moderator
    TPF Supporter

    Join Date
    Dec 2003
    Location
    Edmonton
    Posts
    30,308
    My Gallery
    (111)
    My Photos Are NOT OK to Edit
    Liked
    802 times
    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.
    The camera makes everyone a tourist in other people's reality, and eventually in one's own. - Susan Sontag
    Edmonton Wedding Photographer ==>Blog
    Instructor at The Canadian Photography Learning Centre.

  5. #4
    TPF Junkie!
    Join Date
    Jun 2006
    Location
    Durham, UK
    Posts
    1,918
    My Gallery
    (0)
    My Photos Are NOT OK to Edit
    Liked
    1 times
    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

  6. #5
    No longer a newbie, moving up!
    Join Date
    Feb 2007
    Posts
    30
    My Gallery
    (0)
    My Photos Are OK to Edit
    Liked
    0 times
    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");
    }

  7. #6
    TPF Noob!
    Join Date
    Oct 2009
    Posts
    1
    My Gallery
    (0)
    My Photos Are OK to Edit
    Liked
    0 times
    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,

  8. #7
    TPF Noob!
    Join Date
    Nov 2009
    Posts
    1
    My Gallery
    (0)
    My Photos Are OK to Edit
    Liked
    0 times

    New method in CS3

    There is a new method to do batch image resize in CS3
    Goto File > SCripts > Image Processor

    So simple.

  9. #8
    It's all about - Light Site Moderator
    TPF Supporter

    Join Date
    Apr 2009
    Location
    Iowa
    Posts
    22,082
    My Gallery
    (1)
    My Photos Are OK to Edit
    Liked
    1743 times
    This thread originated in 2005!
    . . . . . . Keith . . . . . . .How Do I Use My Digital SLR?...

    "Even the easy things are tough, if you do them half-heartedly"
    FOR SALE : Stay Tuned!


 

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Photoshop script help please!!
    By UUilliam in forum General Shop Talk
    Replies: 4
    Last Post: 06-18-2009, 09:40 AM
  2. How do I resize a batch of images with a few clicks?
    By carlostau in forum Photography Beginners' Forum
    Replies: 6
    Last Post: 09-24-2008, 03:44 AM
  3. photoshop batch resize
    By DeepSpring in forum Beyond the Basics
    Replies: 5
    Last Post: 02-15-2007, 08:10 AM
  4. Batch Resize Program
    By zing in forum Graphics Programs and Photo Gallery
    Replies: 4
    Last Post: 01-30-2006, 06:59 PM
  5. Batch resize
    By Geronimo in forum Graphics Programs and Photo Gallery
    Replies: 8
    Last Post: 08-09-2004, 10:52 PM

Search tags for this page

automate resize canvas in photoshop not working

,
batch canvas size photoshop
,
how to automate turning canvas square photoshop
,
photoshop automate resize to square
,
photoshop batch resize square
,

photoshop batch script

,
photoshop condition action
,

photoshop javascript resize

,
photoshop javascript resizecanvas
,
photoshop resize action aspect ratio
,

photoshop resize action script

,

photoshop script resize

,

photoshop script resize canvas

,
resize batch canvas photos photoshop
,

resize image photoshop script

Click on a term to search for related topics.