Skip to content

Camera Raw presets: save the panel's settings under a name - #198

Open
Fvzion wants to merge 1 commit into
robbietilton:mainfrom
Fvzion:feature/camera-raw-presets
Open

Fvzion wants to merge 1 commit into
robbietilton:mainfrom
Fvzion:feature/camera-raw-presets

Conversation

@Fvzion

@Fvzion Fvzion commented Sep 30, 2026

Copy link
Copy Markdown

The problem today

A look built in the Camera Raw panel (a dozen sliders, curves, color mixer, grading) can't be kept: to use it on the next photo you rebuild it by hand, slider by slider.

What changes for the user

A Presets menu at the top of the Camera Raw panel:

  • your saved looks, alphabetically; choosing one sets every slider (Cancel still takes it back);
  • Save Settings as Preset… asks for a name, and asks before replacing one with the same name;
  • Rename and Delete (Delete asks first).

A preset saved with White Balance › Auto re-runs Auto on each image it's applied to. Geometry guide lines, which belong to one image, are left out.

How to try it

  1. Filter › Camera Raw Filter…, set a few sliders, Presets › Save Settings as Preset… → "Warm".
  2. Cancel, open Camera Raw on another layer, Presets › Warm: every slider takes the saved value.
  3. Save again as "warm": it asks before replacing.

In the code

  • The Camera Raw settings types become Codable (no other change to them).
  • Document/CameraRawPresets.swift: presets live in one JSON file in Application Support, not in projects, so the project format doesn't change. They're read over the defaults: a preset saved before a slider existed still opens, one a build can't read is kept in the file untouched, and an unreadable file is set aside as .bak before anything is written.
  • UI/CameraRawPresetMenu.swift, placed above the histogram.
  • CameraRawPresetTests (14 tests): round trip, missing and unknown fields, out-of-range values, names differing only in case, rename, delete, unreadable entries and files, applying (including Auto), and the menu's layout.

Tested on macOS 26.6 (Apple silicon): the full test suite passes. Not yet tried on macOS 27.

🤖 Generated with Claude Code

A Presets menu at the top of the Camera Raw panel lists the person's
saved looks and applies one when chosen (Cancel still takes it back).
Save Settings as Preset… asks for a name and before replacing one;
Rename and Delete act on one preset each. A preset saved with White
Balance › Auto balances each image it's applied to. Geometry guide
lines, which belong to one image, stay out.

Presets live in one JSON file in Application Support, not in projects.
They are read over the defaults, so one saved before a slider existed
still opens; one this build can't read is kept in the file, and an
unreadable file is set aside as .bak.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant