I need an action/script for image resizing with a "special" attribute

Having a headache, nothing work so far the way I want it...
So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
The psds have irregular sizes, some are tall, some are square, some are wide, etc.
I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
Any ideas?
Thank you for your input!

elmoldovano wrote:
So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
The psds have irregular sizes, some are tall, some are square, some are wide, etc.
I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
So have both Portrait and Landscape images with varying size. and want to create jpeg from them that are 450x590 pixels in size.  Can the have Portrait and Landscape orientations.  If they all must be Portraits 450px wide by 590px high  your landscape images composition will not fair well.  For cropping landscape image to portraits image normally crops away  to much image content.   Content aware scale may work somewhat better then cropping to portrait the introduced distortion may be acceptable.
If Portrait 450x590px and Landscape 590x450px is an acceptable solution.  I would go with a cropping solution for there will be no distortion and centered crop composition are usually acceptable.   It can also be done with a two step action used by an image processor script.  If you download my crafting action package. It has a plug-in script that can be recorded in an action to set a 45:59 centered aspect ratio selection which you follow with an Image Crop step.  You run the Image Processor  script have the action make the crop and the Image processor to resize the crop to fit into a 590x590px area.
Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
Contains
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action
Sample Actions.txt Photoshop CraftedActions set saved as a text file.
12 Scripts for actions
Example
Download

Similar Messages

  • After action script for Solaris

    Hi,
    I'm having trouble with an after action script for the solaris box.
    my script reads..
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='after-create'>
    <ResTypeAction restype='Solaris' timeout='60000'>
    <act>
    #!/bin/ksh
    echo "$WSUSER_accountId says Hello World!"
    PATH=/usr/lib/nis:$PATH; export PATH
    nisaddcred -p [email protected] -P keerthi2.example.com. des
    exit 0
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>
    I have edited the tabbed user form to include the following field:
    <Field name='global.create after action'>
    <Expansion>
    <s>after-create</s>
    </Expansion>
    </Field>
    Now when i am trying to create a user in my IDM n assigning the Solaris resource i'm getting the following error..
    com.waveset.util.WavesetException: An error occurred adding user 'client1' to resource 'Solaris Client'. com.waveset.util.WavesetException: Script failed waiting for "_,)#+(:" in response "" com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "".
    the account is created in IDM.
    please help me out!
    Regards
    Sanjeev

    Hi-
    Did you ever get a resolution to this issue? I am seeing the exact same error in IDM 8.0 patch 3
    Error
    com.waveset.util.WavesetException: An error occurred adding user 'testusr15' to resource 'idm_client'. com.waveset.util.WavesetException: Script failed waiting for "$" in response "_,)#+(:" com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "_,)#+(:".
    My action script looks like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='after-create-nppasswd'>
    <ResTypeAction restype='Solaris'>
    <act>
    #!/bin/sh
    touch /tmp/idmtest
    release=`uname -r`
    if [ $release != "5.10" ]; then
         passwd -l $WSUSER_accountId
         sed "s/$WSUSER_accountId:\*LK\*/$WSUSER_accountId:NP/" /etc/shadow > /etc/shadow.new
         mv /etc/shadow.new /etc/shadow
    else
         passwd -N $WSUSER_accountId
    fi
    exit 0
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>

  • I am in need of ai script for arcing text

    i am in need of ai script for arcing text

    A little vague aren't we… Is this the kind of arcing you mean? Text along a curve or do you mean distorting into an arch like some plug-in can?
    #target illustrator
    var doc = app.activeDocument;
    doc.defaultFilled = false, doc.defaultStroked = true;
    var textPath = doc.pathItems.ellipse( 0, 0, doc.width, doc.height );
    textPath.pathPoints[3].selected = PathPointSelection.ANCHORPOINT;
    app.cut();
    doc.selection = null;
    app.redraw();
    var tp = doc.textFrames.pathText( doc.pathItems[0], 0, 0, TextOrientation.HORIZONTAL );
    tp.textRange.paragraphAttributes.justification = Justification.CENTER;
    tp.textRange.characterAttributes.size = 60;
    tp.contents = 'I am in need of ai script…';
    var tpd = tp.duplicate();
    tpd.translate( 0, -150 );
    tpd.textRange.characterAttributes.size = 90;
    tpd.contents = '…for arcing text?';

  • Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Hi hasvi,
    I wrote a similar script which creates a bookmark on each page in the "main" text frame at the begining of the frame (the 1st insertion point). Here I attached the script and a couple of sample documents: before and after. It's more complex than what you want but you can use it as a starting point. In fact, you have to find a certain paragraph style, loop through every found item and insert a bookmark, say, at the beginning of the found text.
    The dialog box
    Bookmarks added
    Regards,
    Kas

  • Conditional Actions Script for PS CS2

    This script from Sivaratnam Gunaratnam will perform actions on Photoshop files and can change depending on certain definable conditions encountered in each file.
    From his Blog entry:
    "This is a tool I scripted for myself that I would like to share with all fellow Photoshopers. It allows you to execute your Actions based on Conditions. No programming needed. Just click and define your conditions.. Some examples of conditions are as follows:
    If the image height is greater than its width, do Action X, or else do else Y
    If the image format is JPG / PSD / BMP do action...
    If the image file size is bigger than 300KB, do action....
    if the image IS/IS NOT of RGB, CMYK... etc
    if image author is Siva, do action...
    if image exif contains Nikon D70s, do action ....
    if image name contains "paris", do action...
    etc
    etc
    Please note thatas of this writinghe has only tested it on Windows and PSCS2. However, someone posted a comment to his blog entry stating that it "Seems to work perfectly on a Mac too."
    caveat downloador :)
    Visit Siva's blog to read more and get the script at the following link:
    http://actionlogic.blogspot.com/2006/03/sivas-photoshop-conditional-action.html

    This script from Sivaratnam Gunaratnam will perform actions on Photoshop files and can change depending on certain definable conditions encountered in each file.
    From his Blog entry:
    "This is a tool I scripted for myself that I would like to share with all fellow Photoshopers. It allows you to execute your Actions based on Conditions. No programming needed. Just click and define your conditions.. Some examples of conditions are as follows:
    If the image height is greater than its width, do Action X, or else do else Y
    If the image format is JPG / PSD / BMP do action...
    If the image file size is bigger than 300KB, do action....
    if the image IS/IS NOT of RGB, CMYK... etc
    if image author is Siva, do action...
    if image exif contains Nikon D70s, do action ....
    if image name contains "paris", do action...
    etc
    etc
    Please note thatas of this writinghe has only tested it on Windows and PSCS2. However, someone posted a comment to his blog entry stating that it "Seems to work perfectly on a Mac too."
    caveat downloador :)
    Visit Siva's blog to read more and get the script at the following link:
    http://actionlogic.blogspot.com/2006/03/sivas-photoshop-conditional-action.html

  • Scripting automated image resizing

    Hi,
    Could someone help me with the following script creation, or point me in the direction of where I might learn how to create a script for the following?
    I have X number of .psd files that are all at 2048x2048 pixels.
    I want to automate the resizing of all of the .psd files to 5 inchesx 5 inches at 300 pixels/inch resolution, and then also automate the creation of a .jpeg for each .psd image.
    Edit:
    I also want to incorporate automation of output to a specific folder (so all the .jpegs will be going to a seperate folder from the parent .psd files).
    Thanks!

    For Photoshop Scripting advice I would recommend
    Photoshop Scripting
    and
    PS-Scripts

  • What is the action script for "go to next page"?

    I'm new to flash and need help with action scripts.  What is the code for "go to next page"  I'll be using a mouse event.
    Thanks!

    It depends on where the next page is.

  • Is Action Script for netStreaming and FLVPlayback component radically different, not interchangeabl?

    Hi.
    I am using NetConnection and NetStream to play back flv in Flash Pro CS5.5, and trying to add cue point to trigger events using Action Script, and to automatically rewind to the start at the end. There is no problem to trigger events via AS when the cue points are embedded, but i am unable to add cue points using AS.
    When i use an FLVPlayback component, there is no problem to add cue points (http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html) and to loop the playback using autoRewind (and fl.video.VideoEvent.AUTO_REWOUND which i got from Nafem at http://forums.adobe.com/thread/857036).
    However, i am failing to use this same code w/a netConnection and netStream, and would appreciate any help.
    thanks.

    Hello,
    Well, I've got some help from another helpful fellow at macscripter.net and I have a working script - albeit a bit more specific (ie, hardcoded extensions to look for) and a different approach.
    Here's the script:
    on adding folder items to thisFolder after receiving addedItems
    repeat with movieFile in addedItems
    set {Nm, Ex} to getName_andExtension(movieFile)
    set movieFilePath to (thisFolder as text) & Nm & ".avi"
    set subtitleFile to (thisFolder as text) & Nm & ".srt"
    if Ex is ".srt" then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    else if Ex is ".avi" then
    if my FinderItemExists(subtitleFile) then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    end if
    end if
    end repeat
    end adding folder items to
    on getName_andExtension(F)
    set F to F as Unicode text
    set {name:Nm, name extension:Ex} to info for file F without size
    if Ex is missing value then set Ex to ""
    if Ex is not "" then
    set Nm to text 1 thru ((count Nm) - (count Ex) - 1) of Nm
    set Ex to "." & Ex
    end if
    return {Nm, Ex}
    end getName_andExtension
    on FinderItemExists(thePath)
    try
    set thePath to thePath as alias
    on error
    return false
    end try
    return true
    end FinderItemExists

  • Specific action script for url retrieval

    I use Clickabilty's cmPublish for ad serving.  When creating Flash ads, it requests the following action scipt for clickthrough info:
         on (release) {
                    if (clickTAG.substring(0, 4) == "http") {
                     getURL (clickTAG, "_blank");
    Do I need to replace the clickTag info with the url?  What about the substring.  (I am new at Flash Ad creation).  Any help would be appreciated.

    Hi there,
    the clicktag is made so that publisers don't need to change the fla file all the time. The clicktag is a variable and can be given to the swf by doing example.swf?clicktag=http://www.grafia.fr for example. Normally it should be enough to put the actionscript you mentioned on a big button in the flash ad. The Clickabilty's cmPublish probably uses the example.swf?clicktag=http://www.grafia.fr for serving the ad.
    Greetings,
    Guido Braak
    My Websites: Agence web Bordeaux | La Roue Tourne | TV Soiree

  • Action Scripting for button

    I created a little 'movie clip' of a continuous animation and
    want to make it a button that can be used in dreamweaver. I was
    told I would have to link it from flash (as dreamweave can not link
    a swf file to a webpage). I was having a problem trying to action
    script the movie clip - when I selected the 'movie clip' graphic it
    said: Current selection can not have actions applied to it. How
    should this be done?
    Thanks

    you're right - that should work. my first thing that i test
    when something like that happens is that every keyframe in the
    tween contains exactly the same instance. A common problem is that
    the instance name of the clip may be slightly different(eg a space
    somewhere) in different keyframes.
    Rather than looking for the problem, I usually just clear the
    keyframes in the tween and then put them back in. In your case I
    cleared the keyframe on frame 12 on layer "see more" and then
    inserted keyframe(returning it to color: None) and tested the
    movie. The button works fine!
    So then i went back to your original movie to try to find
    what was inconsistent between the two keyframes in 'see more' and
    couldn't find the problem... so anyway, this looks like a situation
    where we may not know the reason for the problem but at least we've
    found the solution...

  • Action script for batch-opening psd layer files flat? (alt+shift?)

    hi
    i am daily batch processing with an action script to make flat tiffs from psd layer files, like 10-100 files every couple of days in my workflow.
    until now i could not fine a solution to begin the batch processing-action with opening layer files FLAT.
    the reason is: i am working with huge files, 5-20GB .psb files, (16bit, ECI-RGB, 50x100cm, 300dpi) and it takes a couple of seconds to open with my pcie-SSD.
    that multiplies the time it takes to open 50 of such files. i would gain a lot of time, if photoshop cs6 would not open it with layers, but flat.
    there is a workaround i am using daily: (osx) hold alt+shift, then click on the layer file in the finder and cs6 opens it flat.
    but that did not work in the action script. it doesnt store the keyboard command alt+shift.
    any idea how i could save time and use the alt+shift command in the action script or any other solution please?
    thanks
    peter

    I just tried to record this using ScriptListener, and it didn't record it either.  No indo in the ExtendScript SDK on this either.  I don't think that this is possible at this time.  Maybe someone who know more than I do can find a way.

  • Need help creating script for specific instance

    I am having trouble coming up with a working script for this part of the pricing form I am editing. I am trying to get the calculation fields to the right to change and populate in the respective field based on the selection in the Material Type dropdown. Would it be less of a headache if I made another text field to calculate the LE versions separately instead of trying to merge them into one field? I have attached screenshots below to give you an example of what I'm working with. Any help with this is greatly appreciated!
    Script I'm tinkering with at the moment:
    //Dropdown37 = Quantity Field
    //Type of Door IB = Material Type dropdown
    var x = this.getField("Type of Door IB").value;
    if ( x = 1468 ) event.value = x * this.getField("Dropdown37").value;
    if (x = 1202) event.value = x * this.getField("Dropdown37").value;
    else event.value = 0;

    The comparison operator in JS is "==", so change this line:
    if ( x = 1468 )
    To this:
    if ( x == 1468 )
    (as well as the other if-statement).

  • Projector's "Full Screen" viewing action script for Flash Cs5.5

    How do I set a Projector to "Full Screen" viewing on Flash Cs5.5
    Knowing that it already has action script.
    I have tried to add FSCommands on top, to no avail.

    stage.displayState="fullScreen";

  • Any free Universal software for image resizing?

    Hi all,
    Most of the time i downloaded huge image files from the net and have no tools to covert it to smaller size (e.g. 176x220)so that I can send it to my mobile phone as wallpaper.
    I tried using the Iphoto but it does not resize, it's more like cropping.
    Any ideas?

    I use a really neat little program called ImageWell. It works great.
    http://www.xtralean.com/IWOverview.html
    I remember having to search, like you, to find a good image resizing app. Then I found ImageWell. The current version of ImageWell is a Universal Binary.
    Regards,
    Steve M.
    Message was edited by: Steve M.

  • Need data loader script for Buyer Creation for R12

    Hi ,
    Anybody has data loader script for Buyer creation in R12. Please copy paste one line in the reply on this message.
    Thanks

    Hi ,
    Anybody has data loader script for Buyer creation in R12. Please copy paste one line in the reply on this message.
    Thanks

Maybe you are looking for

  • Power Save options

    I've recently purchased a car mount for my 8820, but everytime I put it in the cradel it goes into standby mode. The only options I see for the cradel are locking and unlocking and the ability to make calls when the phone is locked. How do I disable

  • Access a windows folder on ipad

    Is there a way to copy a set of files (.doc, .xls, .pdf, .jpg etc) and folders from windows PC to ipad and access them on ipad.

  • No events in iphoto

    i just loaded songs into itune and when i open iphoto there are no pictures in library

  • How con i produce a colored .eps output from Diadem Report

    Hello anybody, I need your Help. I want to export my Diadem report data to EPS with color. But when i export ist via the export funktion of diadem i only get gray value EPS. What went wrong and how can i fix tghe Problem. I am running Diadem 9.1 unde

  • Data tab

    Is it possible, when viewing data in SQL Developer, to make it show data in "form" mode, rather than having to scroll through everything? This would be single record viewing, I understand.