Skip to the tutorial
lil cactus

How to record actions and batch edit photos

Intermediate6 minutesUpdated

Quick answer

In Lil Cactus, choose Window then Actions, click Record a new action, name it and carry out the edits you want to repeat. Click Stop recording, then choose File then Automate then Batch… Select the saved action, choose your input images, set the output format and scale, and click Run: the results download together in a ZIP file.

Batch dialog set to the Black and white action, two selected images, PNG, 50% scale and the prefix mono
One recorded edit, two input photos, one ZIP of smaller black-and-white copies.
Time
6 minutes
Level
Intermediate
You need
Two or more photos, and an edit you want to repeat
Works with
This lesson uses JPEG inputs and PNG outputs; Batch also outputs JPEG and WebP
Open the sample in Lil CactusUse your own photo

Free, no sign-up. Your photo stays on your computer.

An action is a saved list of edits. Recording performs those edits on the open image; playing the action repeats them on the current image. Batch opens each chosen file, runs the action and exports a copy.

This lesson records a black-and-white conversion. It changes the whole photo, so it works on differently framed pictures without needing a selection for each one.

Record an action and run a batch in six steps

  1. Open a photo and the Actions panel

    Open the sample from this page, or choose File then Open… for your own photo. Then choose Window then Actions. The Actions panel opens on the right. Its round record button is at the bottom.

    The empty Actions panel with its round Record a new action button ringed
    Point at a footer button to read its name. The ring marks Record a new action.
  2. Name the recording

    Click Record a new action, type Black and white into Name, then click Record. The panel says Recording… do the steps once, then stop. Open the photo before recording: the action should contain the edits, while Batch chooses the files.

    Record action dialog with Name set to Black and white
    Give the action a name that describes its result.
  3. Make the edit once

    Choose Image then Adjustments then Desaturate. The photo turns black and white immediately, with no dialog. A step called Desaturate appears in the Actions panel.

    Tip Recording changes the open photo as you work. Check that the step appears before continuing.

    Actions panel during recording, containing one Desaturate step, with Stop recording ringed
    Desaturate is recorded as one step. The record button has become Stop recording.
  4. Stop and test the action

    Click Stop recording, the square button at the bottom of the panel. The action is saved. Choose Edit then Undo to return the sample to color, then click the triangle, Play on the active document. The photo turns black and white again.

    The saved Black and white action with one Desaturate step, and the Play button ringed
    The triangle plays the saved action on the active document.
  5. Choose the batch inputs and output settings

    Download the tram photo and the coffee photo to try two inputs. Choose File then Automate then Batch…

    1. Set Action to play to Black and white.
    2. Under Input images, click Choose images… and select both downloaded photos.
    3. Keep Format on PNG and Reduce colors off.
    4. Set Scale % to 50 and Output filename prefix to mono.

    Both sample photos are 1536 × 1024 pixels, so 50% produces 768 × 512 pixels. With your own pictures, each keeps its original proportions.

    Batch dialog with Black and white, two images selected, PNG, Scale 50 and output prefix mono
    The batch is ready: two selected images, PNG, half-size output and the prefix mono.
  6. Run the batch and open the results

    Click Run. When processing finishes, the dialog closes and mono-output.zip downloads. Extract the ZIP using your computer’s file manager. It contains mono-001.png and mono-002.png, numbered in the order the files were picked. Both are black and white at 768 × 512 pixels.

    Open the files to inspect them before sending them on. Batch exports new files; the input photos stay as they were.

    The coffee sample after the recorded Desaturate action: the cup, saucer and tabletop are black and white
    The coffee photo from the ZIP, black and white at 768 × 512 pixels.

Keep and share your actions

Saved actions are kept in this browser on this device, separate from the photo or project. Click Export actions (JSON) at the bottom of the Actions panel to download a backup of your saved actions. Use Import actions (JSON) to load that file in another browser.

With an action selected, Record more steps appends to it. When you stop the extended recording, confirm Replace to save it under the same name. A step’s checkbox lets you skip that step without deleting it. Keep the original JSON backup before changing an action you rely on.

Replace dialog asking whether to replace the existing Black and white action, with Replace ringed
Stopping an extended recording asks you to replace the saved action with the same name.

Convert or resize a set without an action

In Batch, leave Action to play on (none – export only) and choose the format and scale. Use 100% to keep the dimensions. PNG keeps transparency; JPEG fills transparent areas with white. JPEG and WebP expose a Quality slider.

For mixed portrait and landscape photos, use Batch’s Scale %. A recorded Image Size step stores a fixed width and height, so it can stretch photos with different proportions.

Fix common problems

Playback stops at an unsupported step

Some edits run while recording but cannot replay, including Select then Subject, adding a layer mask and Select then Refine Edge… The recorder marks them as unsupported steps. Playback stops when it reaches one. Point at that step to reveal its buttons, then click the trash button at the right of its row. Test the remaining action again. These commands cannot form an automatic background-removal batch.

The batch reports a failed file

The other files continue. Read the failure message in the Batch dialog, then try the action on that file by itself. A step may require a layer, selection or document structure that the file does not have.

The action is missing in another browser

Import your exported JSON file in that browser. Saving the photo as a project does not transfer your actions.

What to do next

Actions and batch editing: questions and answers

Can I batch edit photos without recording an action?

Yes. In Lil Cactus, File › Automate › Batch… can export and scale a set of images with Action to play set to (none – export only).

Which file formats can Batch create?

Lil Cactus Batch outputs PNG, JPEG or WebP files, collected in a ZIP. Use File › Export on an individual document for other output formats.

Does Batch overwrite my original photos?

No. Lil Cactus Batch downloads new output files in a ZIP and leaves the input files unchanged.

Can an action adapt its selection to every photo?

No. A Lil Cactus action replays a recorded selection exactly as it was made, and Select › Subject cannot be recorded, so an action cannot find a different subject in each photo.

Are batch images uploaded to a server?

No. Lil Cactus opens, edits and exports the images on your device. Your photos are not uploaded for batch processing.