|Simple batch process tutorial|
Using Photoshop & Fireworks
This topic comes up so often I thought I'd write a quick 'How To' for batch processing image files using Photoshop & Fireworks.
|Principle: You have dozens of images you want to convert for a gallery, create thumbnails, change from a digital camera RAW files etc... But do not want to have to edit each image one by one. Using the in-built batch processing command in an image editing application you can automate the process converting swathes of files using one instruction |
In the example I use below I am going to resize the photos, optimise them as low res JPEG and export them to a new folder.
What you'll need: A folder full of images
Photoshop or Fireworks - I'm using CS & MX but the rules are very similar for older versions
A spare 5 minutes
A. Recording your Action
- Open PS
- Open you Actions Palette (windows – actions)
- Click on the chevron top right of the palette
- Choose New Set
- Name it ‘limbo’ (or your choice)
- Click OK (you’ll see the limbo folder in the palette window)
- Click the same chevron in the actions palette
- Choose new action
- Name it ‘JPEG Resize’ (or your choice)
- Click OK (you’ll see the new action in the limbo folder)
- Open the first image in you source folder
- Select JPEG Resize & Click on the record button in the actions palette
- Select image size – choose 50% and constrain the proportions
note: it is important to use %’s if your images are different sizes
- Click file > save for web
- Choose medium compression JPEG (quality 30)
- Click save > choose a folder destination (this will be final destination for all you batched files)
- Close the file
- Click the Stop Recording button in the Actions Palette
B. Applying your Action to a Folder of Files
- Click file > automate > batch
- Select ‘limbo’ in the set dropdown menu
- Select ‘ JPEG resize’ from the action dropdown menu
- Select Folder from the source dropdown menu
- Click Choose > Select your source folder
- Tick the ‘Override Action “Open” Commands’ box (needed for some file types e.g. EPS, camera raw )
- Select Folder from the destination dropdown menu
- Click Choose > Select your destination folder
- Click OK,
- Make yourself a drink, put your feet up watch it happen :)
[edited by: limbo at 12:45 pm (utc) on Mar. 23, 2005]
A. Recording A Command
- Open FW
- Open an image
- Modify > Canvas > Image size > Choose 50%
note: change both X & Y to 50 % FW does not contain them both as %’s other wise your images will be resized as 50% + specified pixels
- Click OK
- Click file > export preview
- Select JPEG 30
- Click OK (not save)
- Click file > export
- Select your Desitination folder
- Click save
- Open your History Palette (two items will be stored as image size & export)
- Select both Items
- Click the chevron top right of the palette
- Choose Save As Command
- Name it Resize JPEG
- Click OK
B. Using A Batch Command
- Open FW
- Click > file > batch process
- Select the folder of images you wish export
- Click the ‘add all’ button
- Click next
- Select Resize JPEG from the command list
- Click Add
- Click next
- Select/create your destination folder
- Click Batch…….
here I have a problem – I am unable to supress the save dialogue box so I have to click save for every image, which is still quicker than repeating all but very monotonous (anyone know?)
These Commands and actions can then be applied to new images the future, so you only have to make a recording once to use it thousands of times, it is that simple, you can apply all sorts of functions to a batch, don't be shy with it, automation is the way forward.
If I have missed anything, made any errors or if you know a quicker way let me know. And if you can add a tutorials for GIMP,
CorelDraw, PaintshopPro or any other Image editor that would be great.
Thanks to Leosghost and his son for this addition. (original thread here [webmasterworld.com])
Converting and Resizing using XnVIEW ( freeware )
- Open Xnview.
- Choose: Tools/Multi Convert.
- In the dialog window which appears, click "Add".
- Browse to locate the folder in which your screen captures are.
- Select the first file (top left, duh!), then select the last
file which is in the list of your files to convert while holding down the "shift" Key (don't worry about also selecting some files which your not going to convert, you can take 'em out of Xnviews file convert list afterwards by selecting 'em individually, and clicking the "Remove" button each time).if need be.
- If you're going to put the eventual converted and resized copies in another folder, choose it by clicking the "..." button next to the "Directory" input text, or by typing the location of that new folder in that same input text.
- Next, choose the file type your going to convert them in (for example: jpeg). Xnview has an INCREDIBLE number of files it can convert, save or open!
- If possible, do NOT tick the "Delete original", you might never know when you'll be needing the originals!
- Click on "advanced operations" - select (high light) "resize" - then click on the top button with the dotted arrow (this will bring resize into the rightside window and will now allow you to select the sizes and the sampling method - leave "keep ratio" ticked ). note: You may need to play around with resampling types until you get the quality you want. "bilinear" is good for 99% of images for the net
- press "OK" to close the dialog box.
- Press "Go", wait till it's done converting, renaming and the rest... And, at last go and see if it did its job correctly by opening the folder in which all these new graphics are waiting. :)