Can I batch convert images in a folder hierarchy?

I can't seem to be able to create an Action or Droplet in Photoshop CS5 that will batch convert images in situ in a hierarchy of folders. In the Photoshop Actions you have to specify an explicit destination, and there's no "save back to the same place" option that I can find.
I used to be able to do this with ImageReady CS2, but Tiger is going to kill that. Help!

If you want to give it a try, paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS4 or /Applications/Utilities/Adobe Utilities-CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
// 2011, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
// get document-path and -name; thanks to xbytor;
     var myDocument = app.activeDocument;
     var myDocName = myDocument.name.match(/(.*)\.[^\.]+$/)[1];
     var myPath = myDocument.path;
// save for web options;
     var webOptions = new ExportOptionsSaveForWeb();
     webOptions.format = SaveDocumentType.COMPUSERVEGIF;
     webOptions.optimized = true;
     webOptions.colorReduction = ColorReductionType.ADAPTIVE;
     webOptions.dither = Dither.NONE;
     webOptions.quality = 100;
     webOptions.includeProfile = true;
     webOptions.matteColor = new RGBColor();
     webOptions.matteColor.red = 255;
     webOptions.matteColor.green = 255;
     webOptions.matteColor.blue = 255;
// export;
     myDocument.exportDocument(new File(myPath+"/"+myDocName+".gif"), ExportType.SAVEFORWEB, webOptions);
Edit:
The Script could be recorded into an Action.
It would also be possible to create a Script that offers a dialog for File- or Folder-selection and subsequently operates on all selected/contained files of specified formats, but that would be a different approach from the Droplet.

Similar Messages

  • Best way to batch resize images in nested folder hierarchy?

    Hello,
    I'm looking for help on [what is probably] a classic problem related to content sites.
    I'm launching a content site that has numerous articles, and attached to each article is a number of images.  The raw site assets are currently set up in a folder hierarchy like this:
    Overall site assets folder
    Category One folder
    Article One folder
    Unmodified images folder
    Resized, production-ready images folder
    Article Two folder
    Unmodified images folder
    Resized, production-ready images folder
    Etc..., etc....
    There are hundreds of articles in this hierarchy.
    I'm looking for a script that will take every image in each "Unmodified" folder and save a resized copy to the "Resized" folder, preferably with different settings for vertical and horizontal images (though I'll be OK with just fixing the width if need be).
    I realize that I can do this manually and locally within each folder with a droplet, but between droplets / actions / plug-ins or third-party tools, is there an easy way to accomplish this across a large nested hierarchy with many folders as long as the Unmodified and Resized folders are nested together?  And what about horizontal vs. vertical images? 
    THANKS!!!!!!
    Scott

    Ahhh, I understand what you're saying.  I'm downloading and installing this CS6 script, which might be along the lines of what I'm looking for:
    Dr. Brown Services - Image Processor Pro
    http://www.e-zest.net/blog/photoshop-cs6-save-for-web-images-batch-processing-keeping-nest ed-folder-structure-intact/
    Photoshop supports recording the actions and the facility to run that action for batch processing. But it also has a couple of limitations up to Photoshop cs6 as mentioned below –
    Photoshop does not maintain the source, hereditary/nested folder structure for the output (destination) images. Save for web only saves all the files to the folder specified when you record the action.
    In case of some file handling issues, Photoshop action throws an error & pauses/stops working, wherein we need to skip these errors manually.
    I I tried to Google it to find answers and also tried couple of JavaScript solutions such as the – SFW Batch Processor, SFWCS4-5, Picture Processor etc., but unfortunately all of them didn’t work for me. Either it gave up or stopped working or even threw errors for PhotoshopCS6 and CS2.
    Thanks to Russell Brown for providing new CS6 Extension script to resolve the ‘save for web’ batch processing issue like maintaining the images nesting folder structure.
    Not sure if it does exactly what I need, but checking....
    Best,
    Scott

  • How can I use an image as a folder background on icon

    vista updated firefox - how can I use an image as a folder background for an icon of that folder (for desktop)

    This is not a Firefox related issue or Firefox setting etc. This is a windows or OS setting, I provided the link below on how to change this in Windows Vista.
    See:
    '''[http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/how-do-i-change-the-folder-icon-in-vista-to-one/01261170-4e02-4c4b-8c02-141d1524ad3e?auth=1]'''

  • I downloaded the free trial of Lightroom 5 and love it but I can't export the images to a folder.  Is this because it is a free trial?

    I downloaded the free trial of Lightroom 5 and love it but I can't export the images to a folder.  Is this because it is a free trial?

    Yes, but I don't know enough about iPhoto to understand the consequences of "imported them into iPhoto first". In any event, I do understand the needs of Lightroom, and if the photos have been moved or renamed or deleted (or if the folders that contain them have been moved or renamed or deleted) outside of Lightroom, then this will cause the Lightroom symptoms you describe. You need to reconnect the photos in Lightroom using the instructions I linked to. Either that or move the photos and folders back to where they used to be after you imported them into Lightroom. Nothing else will work.
    In the future, please understand that your photos are never stored in Lightroom; they are stored on your hard disk somewhere and the very simple principle that you need to follow is that Lightroom needs to be informed of where the photos are at all times, using the methods in that link; or better yet by never moving or renaming or deleting the photos (and the folders that contain them) outside of Lightroom.
    As an additional recommendation, the idea of using both iPhoto and Lightroom on the same photos is one that could cause problems, especially for beginners. If you are going to use one of these software, then don't use the other one.

  • How can I batch compress images on import

    Hi All,
    This might not be the right place for this question; if so, apologies in advance.
    Since moving 100% to mac, I've been experiencing a workflow problem, and I can't seem to find anything in iPhoto or Automator to help me out.
    My camera takes JPG photos with a fixed file size. That is, all of the images are exactly the same file size, no matter what the image is of. It turns out that this is a huge waste of disk space. To get around this on my windows machine, I used to do the following:
    1. Import images to temp folder on my computer.
    2. Use irfanview to batch save all of the images to a different folder, with 90% jpg compression.
    3. Import the resulting files into Picassa.
    Doing this would sometimes reduce an image size from the default 4mb to as small as 300kb (average about 800-1200 kb), and made a really big difference to my disk space.
    I would like to find something similar on my Mac, but I've been unable to.
    All I want to do is to open each image and save it with a predetermined level of compression. And, I'd like to do this either to the photos that are already imported into iPhoto, or to photos before they are imported.
    I thought that automator might be able to help, but I cannot find a simple 'save with XX compression' command anywhere (although I can find tasks to import photos to the computer, and then to iPhoto, so it's mostly there).
    I can't find any functionality within iPhoto itself to handle this problem.
    Does anyone have any suggestions?

    Welcome to the Apple Discussions. You do know that when you compress the jpgs to the 90% level you're reducing the image quality of the file considerably, right? That being said, the only way to do what you want is what you did on the darkside, compress before importing into iPhoto.
    There are some resizing apps than you can set to just compress the quality level and leave the pixel dimension alone. Renamer4Mac is one. You can find more by searching at VersionTracker.com for "resize".
    What with the large HDs that come in the Macs and the availability of large, inexpensive external HDs, resizing before importing into iPhoto is considered by many to be penny wise but pound foolish.

  • Using Aperture to batch convert images from tiff to jpeg

    Hi there
    My first question - here goes:
    I wish to batch convert several thousand tiffs (of various sizes) to a standardised jpeg (A4 @ 300dpi). I'm looking for software to automate this process as much as possible; ideally, it would search designated folders and place the new jpegs in a (matching) new folder structure.
    Would Aperture be suitable for this, or should I consider Adobe Lightroom (or other)?
    Many thanks
    BR

    No filters.
    Solution I used was to create new project. Copy images to it. Delete old project.
    Aperture would not let me copy images from old albums to old project.

  • How can I import selected images from a folder instead of the whole folder in iPhoto 9.5.2?

    Hi there,
    I was trying to help my parents import some photos from a folder they have created with photos from their holiday. They only want to import select images from this folder into iPhoto. I said it would be easy and they can do it in 2 ways. First, they can drag and drop selected photos from their folder into iPhoto - and this works for them. However, more convieniently, they can click file>import to Library and then select the photos they want by going into the folder... Well that's how it works on my iPhoto '11 at least. When they showed me their screen via Skype (they are running iPhoto 9.5.2), when they click import to library, and try to go into the folder containing their photos, it imports the whole thing and there appears to be no way that they can enter the folder to select just a few photos from what I could see.
    Does anyone know anything aout this problem?
    Cheers.

    What view are using in the Import dialogue. Column view might be easiest to navigate.

  • Can't drag firefox image into applications folder

    The instructions advise to drag firefox to image of Applications folder, but I can't find the firefox image. 2 show up on my desktop, but neither look like the one in the image and neither will move to applications folder or to dock. HELP!

    Make sure that Firefox gets installed properly.<br />
    Open the DMG file and drag to Firefox program to the application folder on your hard drive.<br />
    You shouldn't double-click the Firefox application to run it from the disk image, but drag it out of the DMG folder instead.<br />
    <br />
    See [[Installing Firefox on Mac]]
    See http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X

  • How can I batch import images 1 per page?

    I need to import images into the same Fireworks file, 1 per page. I have about 60 to do, and I'm hoping there's a better way then just adding them one by one. How can I batch import so that a page is created for each image?

    You can use the Import Files into Pages command in this extension: http://johndunning.com/fireworks/about/PageCommands
    Just select all the files in the file selection dialog.  They'll be imported one to a page, sorted by their filename.

  • How can I select all images in a folder without subfolders?

    Either I am looking with my nose (as we would say in The Netherlands) or it is not possible:
    I have a folder A with images and in that folder there's a subfolder B. I want to rename all the images inside folder A so I want to select them all to begin with. However, clicking on folder A in LR also show all the images in folder B and therefore CTRL-A also selects them all. Now, how can I only select the ones in folder A?
    Danny.

    Winston's example certainly provides a method for the situation you described, but it doesn't help if you have multiple, nested subfolders. But my piece of advice is to be patient. Things will get better on this front.
    - Pierre

  • Images import without folder hierarchy

    I have many images organized in a hierarchy of folders. Importing images works, but the folders and albums are not being created. I narrowed focus to one folder with two subfolders containing a total of 8 images. Every import technique (including dragging the folder to project pane) results in a new project with all 8 pictures but no albums containing the two groups.
    What am I doing wrong? I thought Aperture can import a folder hierarchy, with the lowest level folders (containing images) becoming Aperture albums.
    MacBook Pro C2D 2 GB 17"   Mac OS X (10.4.8)  

    Problem solved.
    Aperture was not creating albums corresponding to Finder folders when importing by dragging a family of folders to Library in Projects pane.
    Deleted "Aperture Library.aplibrary" in Pictures folder, cleared trash and restarted. Did not solve problem.
    Next time, deleted Aperture library again and also deleted relevant plists:
    ~\Library\Preferences\.com.apple.Aperture.plist
    ~\Library\Application Support\Aperture\*.plist
    Restarted. Ran yasu.app (general maintenance utility). Restarted Aperture.
    Dragged my test folder group to Library in Projects pane. And I get two Albums! It works!
    If you have this problem (no Albums on import), first try deleting only the plists in ~\Library\Application Support\Aperture, restart Aperture and try again. That may be sufficient.
    Aperture does have a bad habit I consider a bug. If you open, say, the Import window, explore pull down menu choices, and "Cancel" out of the window, it still remembers the last setting before you canceled. And some setting in that exploration can disable album creation on import. I may be wrong about that detail, but anyway, I solved my problem.

  • How can I batch convert Page Documents to the Doc format, and keep them in the same folder?

    I have hundreds of Page documents in a folder structure for school that all need to be converted, but remain within the folder structure. Are there any scripts or methods to make this task easier before I go by this one-by-one?

    If you seriously expect an answer you'll need to give more information than the rather vague "can't"s so far.
    What version of Pages on what version of OSX?
    What exactly are the messages you are getting?
    Which scripts have you tried?
    Have you tried Automator and Smart Folders?
    Peter

  • Can't locate RAW images in Originals folder

    I shoot in RAW+JPEG.
    Well, I uploaded two batches of photos (two separate "Events" in iPhoto) a couple of months ago and am now looking to edit them in Lightroom. In iPhoto, these "Events" show both the JPEG and the Nikon RAW image. Each photo is labeled accordingly in the Information box.
    However, when I look in the iPhoto Library packages, these two events do not show up in the "Originals" folder. They only show up in the "Modified" folder, and only as JPEGs! Where have my originals gone??
    All of my other RAW images are present in the "Originals" folder. It seems as though only my last two uploads are missing.
    Help!

    What you're viewing in iPhoto are jpgs that iPhoto created for viewing the image. You're not looking at the the raw file itself.
    To determine if you have any raw files in your library search in spotlight for the extension of your raw files. Like ".cr2" or whatever it is. If you don't get any hits that will indicate that the raw files have been removed from the hard drive.
    Are you using a managed or referenced library?
    Click to view full size
    If you're running a reference library is there any chance it could have been a managed library when the raw files were imported. That would explain having the jpg file for viewing and no raw files.
    I would also download and use Find Any File to search for the file extension. FAF can search inside packages and areas of the hard drive that spotlight can't.
    OT

  • Can you Batch convert files to pdf's Acrobat 9 standard

    i am looking through Acrobat 9 standard and can not see any batch conversion to convert all the files in a folder to PDF's not (combining them) is this something available in other versions pro or extended? or am i just doing it wrong? may a script or something?

    There are no batch processes at all in Acrobat 9 Standard. Only Pro or higher has them.

  • Can you re-order images in a folder?

    This should be simple, but I can't figure it out. If I import a folder of images and rate them, I then want to re-order them also. But I don't seem to be able to drag and drop the thumbnails to a new position. Is there a trick to this? I've tried it in every module and view.
    Thank you, Justine

    I am actually dragging by the image not the border. I am in the library module, but looking at the actual folder contents. It doesn't work in either the main window or the bottom thumbnails. The image simply bounces back to its original position. If I make a collection from the folder I can move them, but this is an extra step. Also I failed to mention that I haven't done the upgrade yet, so maybe that's why I'm not getting the path you are referring to Don? Thanks for all your suggestions, I'm sorry none of them have solved my problem.
    cheers, j

Maybe you are looking for

  • Can't update to 10.5 on Win7 - Folder Path contains an invlaid character error

    Tried to update to 10.5 with Win 7 (64bit) and keep getting the error - Folder Path AppData/Roaming contains an invlaid char. Same error if I try to uninstall itunes. Any ideas on how to proceed?

  • 2007 MacBook Pro w/ Mac OS X Lion Can't Automatically Connect to my Wi-Fi Network...

    Hello everyone, I have a late 2007 15" MacBook Pro (not Unibody model) that has been recently upgraded to Mac OS X Lion (not Mountain Lion). Ever since the upgrade, when I power it on, everything loads as it should but what I notice is that my MacBoo

  • Instantation Policy for Collection Object.

    Dear all, We hit the problem related to the collection object. We have extended the java's collection object, i.e. List, Set and Map, to hold some extra tranisent attributes and tried to recover them with event handler (i.e. postMerge, postClone, pos

  • Getting a table from XI to SAP through RFC

    Hi Experts, I created a RFC function to get data from XI. I created a structure and defined a table in the Tables tab in the function. When the function is called fron XI, I can see that the function is working, but i get no data in the table. Any id

  • 6120C, email getting stuck in outbox

    Hi, Until the end of last week I could send emails fine; then looking today I had half a dozen, all stuck in the outbox! When I try to manually send them, they just sit there.... staying in the outbox, flagged as 'Queued'. Anyway, I have two email ac