Sub topic 12
Quick conversions with the Image Processor
The Image Processor converts, resizes and saves a folder of images without a recorded action. This chapter covers its options, how it differs from the Batch command, and the errors people run into. It assumes you can open and save images in Photoshop and know the difference between JPEG, PNG, TIFF and PSD. You should also have read the chapters on recording actions and on the Batch command.
What the Image Processor is
The Image Processor is a dialog that wraps a fixed set of steps: open each file, optionally resize it to fit a box, save it in one or more formats, and optionally run an action first. You reach it from File > Scripts > Image Processor. Photoshop ships it as a bundled script. It is written in JavaScript, the same language as the ExtendScript example in the last chapter of this tutorial.
Use it when the job is "make web copies of these files" and you don't want to record anything. Use Batch with an action when you need steps the dialog doesn't offer, such as sharpening, adding a watermark layer or changing the color mode.
| Need | Image Processor | Batch with an action |
|---|---|---|
| Resize to fit a width and height | Built in | Record Image Size, with care |
| Save as JPEG, PSD and TIFF in one pass | Built in | One format per run, unless the action saves extra copies |
| Run custom edits | Optional single action | Any number of steps |
| Fine control over file names | Fixed rules | Naming options in the Batch dialog |
| Subfolder and error handling | Fixed behavior | Overrides and error log |
The four sections of the dialog
The dialog is numbered top to bottom. Work through it in order.
- Select the images to process. Choose Use Open Images to process whatever is open, or Select Folder to pick a source folder. With a folder, you can tick Include All sub-folders to recurse. Tick Open first image to apply settings if you want Photoshop to open the first file so the processor can use that image's color profile. This matters for the Convert Profile option below.
- Select location to save processed images. Choose Save in Same Location to write next to the originals, or Select Folder to send output to another folder. The processor creates a subfolder per format, so you will see
JPEG,PSDandTIFFfolders inside the destination. - File Type. Tick one or more of Save as JPEG, Save as PSD and Save as TIFF. Each has its own options (below). Ticking Resize to Fit sets a maximum width (W) and height (H) in pixels.
- Preferences. Optionally run an action from a chosen set, add copyright info text, and tick Include ICC Profile.
At the top right, Run starts the job. Load and Save store your settings in a file, so you can reuse a configuration without re-entering it.
File Type options in detail
JPEG
- Quality runs from 0 to 12. The default of 5 is lower than many people expect. Values of 8 to 10 give clean web images, and 12 gives the largest files.
- Convert Profile to sRGB converts the pixels to the sRGB color space before saving. Turn it on for web output. Images in a wide-gamut profile such as Adobe RGB look dull in browsers that ignore profiles if you skip this.
PSD
- Maximize Compatibility stores a flattened preview inside the file so older software can read it. It makes files larger.
TIFF
- LZW Compression shrinks the file without losing detail. Some older print workflows can't read it, so leave it off if the receiver asks for uncompressed files.
Resize to Fit
The processor scales each image so it fits inside the W by H box and keeps the proportions. It never distorts. It also doesn't crop, so a landscape and a portrait image both end up inside the box, each touching at most two edges.
Two details cause confusion:
- A box of 1600 by 1600 limits the longest side to 1600 for every orientation. That is usually what you want for "no side larger than 1600".
- Resize to Fit may enlarge small images. If your originals vary in size, check whether small files get scaled up, because upscaling lowers quality and the result may not be what you intended. Filter the source folder first, or use a script (like the one in the final chapter) that only shrinks.
How it processes each file
The order of steps matters when you combine the resize with an action.
The resize happens before the action. If your action also contains an Image Size step, it will run on the already-resized image. Design the action with that in mind, or leave resizing to the action and untick Resize to Fit. Don't do both.
Running an action from the Image Processor
Under Preferences, tick Run Action, then pick a set and an action. This is a lighter way to add one editing step, such as a sharpening action, to a conversion job.
Points to watch:
- The action must not contain its own Save As or Close steps. The processor does the saving. A recorded Save As inside the action writes an extra file to a fixed path and can stop the run with a dialog.
- A recorded Open step is a problem for the same reason. The processor has already opened the file.
- Actions that depend on layers, selections or paths that don't exist in every image fail partway. See the chapter on designing portable actions.
- If the action shows a dialog, for example a modal control or a Stop, the run pauses until you answer. Remove stops and modal controls from actions you use here.
Behavior with existing files and layered sources
- The processor does not overwrite your originals when you save to a different folder, because it writes to the
JPEG,PSDandTIFFsubfolders. If you choose Save in Same Location, the subfolders still keep the new files apart from the sources. - If a file with the same name already exists in the output subfolder, the processor replaces it without asking. Run it twice with different settings into the same folder and the second run wins.
- Saving a layered file as JPEG flattens the saved copy, not your source. The processor works on the open document and closes it without saving changes to the original, so the original file keeps its layers.
- Files with the same base name but different extensions in one folder, for example
photo.tifandphoto.jpg, produce the same output name. The later one overwrites the earlier one. Rename or process them separately.
Image Processor or Batch: choosing
Choose the Image Processor when:
- The output is only JPEG, PSD or TIFF, and a resize is the main change.
- You need several formats from the same source in one run.
- You want no setup time.
Choose Batch (or a droplet) when:
- You need PNG, or another format the Image Processor lacks. It has no PNG option in its dialog, so PNG output needs an action with a recorded Save As, or a script.
- You need naming rules such as a serial number or a date.
- The action contains many steps, or you need an error log.
- You want a drag-and-drop droplet.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Run stops with a dialog about a profile mismatch or missing profile | Profile policy dialogs are asking what to do | Tick Convert Profile to sRGB, or set color management policies in **Edit > Color Settings** to avoid asking |
| Some files are skipped | The processor handles only formats Photoshop can open, and unsupported files are ignored | Check the folder for unsupported or damaged files |
| Output images are smaller than expected | W and H were set as a box, not as a target width | Enter the box that holds your largest allowed size in both fields |
| Output looks oversharpened | A sharpening action ran after the resize and again in the action | Remove one of the two steps |
| Extra files appear in an unexpected folder | The action has its own recorded Save As | Remove the Save As step from the action |
| Run pauses repeatedly | Action contains stops or modal controls | Edit the action to remove them |
A worked example
Goal: turn a folder of 24-megapixel photos into web JPEGs with a longest side of 2000 pixels, sRGB, quality 9, and also keep a TIFF archive copy.
- Choose File > Scripts > Image Processor.
- Under section 1, choose Select Folder and pick the photo folder. Tick Include All sub-folders only if the photos are spread over several folders.
- Under section 2, choose Select Folder and create a new empty folder named
export. - Under section 3, tick Save as JPEG, set Quality to 9, tick Resize to Fit with W 2000 and H 2000, and tick Convert Profile to sRGB. Tick Save as TIFF and tick LZW Compression.
- The resize box applies to every format you ticked, so the TIFF will be 2000 pixels too. If you need a full-size archive TIFF, run the processor a second time with only TIFF ticked and Resize to Fit off, into a different folder.
- Click Save to store these settings, then Run.
When the run finishes, export/JPEG contains the web copies and export/TIFF contains the archive copies. Open two or three results and check the pixel dimensions with Image > Image Size.
Summary of limits
- Output formats are JPEG, PSD and TIFF only.
- One resize box applies to the whole run.
- Naming and subfolder behavior is fixed.
- An optional action runs once per file, after the resize.
Exercise
You have 400 mixed landscape and portrait photos and need web JPEGs where no side exceeds 1200 pixels, plus the same files as full-size TIFFs. Describe how you would run the Image Processor, and say why one run is not enough.
Show answer
Run it twice. In the first run, tick Save as JPEG, tick Resize to Fit with W 1200 and H 1200, and tick Convert Profile to sRGB. Save to one output folder. In the second run, tick only Save as TIFF and leave Resize to Fit off, so the TIFFs stay at full size. One run is not enough because the resize box applies to every format ticked in that run, so the TIFFs would also shrink to 1200 pixels.
Exercise
An action you run from the Image Processor keeps creating extra JPEG files in a fixed folder, and the run sometimes stops on a dialog. What is the most likely cause, and how do you fix it?
Show answer
The action contains a recorded Save As step (and possibly an Open or Close step). The processor already saves and closes each file, so the recorded step writes extra files to a fixed path and can raise dialogs. Edit the action in the Actions panel and delete the Save As, Open and Close steps, then run again.