Skip to content

Undo, History and Snapshots: Try Ideas Without Losing Your Edit

Ctrl+Z is the most pressed key in any editor, yet it only walks backward in a straight line. The moment you step back and change something, the path you left is gone. Photoyam’s History panel shows that line of steps so you can see where you are, and snapshots let you pin a version with a name so you can come back to it no matter what happens afterward. Used together, they make it safe to experiment.

The same close-up of a hand-painted cup three times, as saved in three History snapshots: as opened, after a soft Gaussian Blur (Soft focus), and after added noise on top (Film grain).

How History records your work

Every change that alters the document, a brush stroke, a filter, a new layer, a crop, adds one row to the History panel (open it with Window › History). The newest row is at the bottom and the current state is highlighted. Things that do not change the image, such as zooming or switching tools, are not recorded.

  • Click any row to jump straight to that state. The rows below it turn grey but are kept until you make a new change.
  • Ctrl+Z and Shift+Ctrl+Z step one row back and forward, the same as clicking the row above or below.
  • Edit › Toggle Last State (Alt+Ctrl+Z) flips between the current state and the previous one, a quick before-and-after for the last edit.
  • The trash button at the bottom of the panel deletes the current step and everything after it.

Each open document has its own History, up to 100 steps. Beyond that the oldest rows fall off the top, which is rarely a problem for a single photo but can be for a long retouching session.

Why undo steps disappear

History is a single line, not a tree. Say you apply a blur, then a vignette, then decide to go back two steps and try a different crop. As soon as you crop, the greyed-out blur and vignette rows are thrown away, because the new crop now follows the earlier state. Redo has nothing left to redo.

This catches people out when they browse back through History to compare, touch something by accident, and lose the work they were comparing against. The fix is to pin the good state first. That is exactly what a snapshot does.

What a snapshot is

A snapshot is a named copy of the whole document at one moment, listed above the History steps with a small thumbnail. It lives next to the History list rather than inside it, so undo and redo never remove one, the 100-step limit does not apply to it, and branching off in a new direction leaves it untouched.

Snapshots are cheap. Photoyam documents share every unchanged layer between states, so a snapshot only costs memory for the pixels that later edits replace. Hover over a snapshot to see how much it holds, and the footer of the panel shows the total, such as “2/20 snapshots” with the memory used.

The History panel in the Photoyam Pro editor with three snapshots listed above the history steps, each with a thumbnail: cups.jpg (the automatic first snapshot), Soft focus and Film grain, then the steps Filter: Gaussian Blur and Filter: Add Noise. The footer shows the snapshot count and memory, and the buttons for a new document from the current state, a new snapshot (a camera) and delete.
The opening snapshot plus two named ones, Soft focus and Film grain, above the History steps. The camera button in the footer makes a new one; clicking a snapshot puts the document back in that state.

Compare two versions with snapshots

  1. Open the History panel. Choose Window › History if the panel is not already in the dock.
  2. Take a snapshot of the current look. Click the camera button at the bottom of the panel. A row named Snapshot 1 with a thumbnail appears above the list of steps.
  3. Rename it. Double-click the name, type something you will recognise, such as Warm grade, and press Enter. Esc cancels the rename.
  4. Try the alternative. Keep editing: a different crop, a cooler color balance, a stronger vignette. When it looks right, take a second snapshot.
  5. Click between snapshots. Click one snapshot, then the other, to flip the whole document between the two versions. The active snapshot is highlighted.
  6. Save the project. Use File › Save As Project (.psy) (Shift+Ctrl+S) so the snapshots are stored with the document.

Rename, revert and delete

Reverting to a snapshot is itself a new History step, named “Snapshot:” followed by the snapshot’s name. That makes it reversible: if you clicked the wrong one, Ctrl+Z returns you to where you were. If the document is already in exactly that state, for instance right after taking the snapshot, clicking it only highlights it and adds nothing to History.

Renaming works by double-click, or by pressing F2 when the snapshot has keyboard focus. Deleting uses the same trash button as History steps: while a snapshot is the active state, the button’s tooltip reads Delete snapshot and removes that snapshot without touching the document. With a snapshot focused, the Delete or Backspace key does the same.

The footer has one more button, Create new document from current state. It copies the current state into a separate document tab, which is the way to keep two versions side by side or to export one while you keep working on the other.

New Snapshot options and the first snapshot

The camera button always snapshots the full document. For more control, open the History panel’s menu (the ☰ button in its tab row) and choose New Snapshot…. The dialog asks for a Name and what to take it From:

New Snapshot › From
OptionWhat is keptGood for
Full DocumentEvery layer, mask, group and settingGoing back to a complete earlier version
Merged LayersOne layer holding the visible compositeA lightweight reference of how the image looked
Current LayerOnly the active layerComparing versions of one retouched layer

Photoyam also makes a snapshot by itself when a document opens, named after the document, so the original is always one click away even after 100 steps. You can switch this off with Automatically Create First Snapshot in Edit › Preferences…. That automatic snapshot is not written into project files, because the file you opened already holds that state; rename it and it is kept like any other.

Keeping snapshots in a project file

Snapshots belong to the document, so how long they last depends on how you save it:

  • Photoyam project (.psy). Saved with File › Save As Project (.psy), or by picking .psy in the Export sheet. Your named snapshots are stored in the file and come back when you open it. Pixels a snapshot shares with the document or with another snapshot are written once, so a few snapshots rarely make the file much bigger.
  • PSD, JPG, PNG, WebP. These hold one state only. Export them from the snapshot you want, but expect the snapshots themselves to stay behind.
  • Recovery copies. Photoyam’s automatic recovery keeps named snapshots too, so a crash does not cost you the versions you pinned. The saving guide explains how recovery works.

Try it in Photoyam

Take a snapshot, try something bold, and click back if you change your mind, in a free editor that runs in your browser.

FAQ

How many steps can I undo?

The History panel keeps the last 100 steps of each document. Older steps drop off the top of the list as you work. A snapshot is not affected by that limit, so take one before a long series of small edits if you may want to return to the starting point.

Is clicking a snapshot permanent?

No. Reverting to a snapshot is recorded as a new step in History, named after the snapshot. Press Ctrl+Z (Cmd+Z on a Mac) and you are back where you were a moment ago.

Are snapshots saved in a PSD or JPG?

No. JPG, PNG and PSD hold one state of the image. Only a Photoyam project (.psy) stores your named snapshots, and it stores pixels that the snapshots share with the document just once, so they add little to the file size.

Why can't I add another snapshot?

A document can hold up to 20 snapshots. When the limit is reached Photoyam shows a message; delete a snapshot you no longer need and the camera button works again.