Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3 RAW Editor prototype

A focused, non-destructive Windows editor for Nikon D3 .NEF photographs. The same adjustment engine is used by the visible controls and by a bounded local Codex MCP server.

Prototype features

  • Nikon D3 NEF decoding through LibRaw/rawpy
  • Fast half-resolution previews and full-resolution export
  • Exposure, brightness, contrast, highlights, shadows, and saturation
  • Luminance-based auto contrast
  • Camera, automatic, daylight, and manual white balance
  • Manual color temperature and green/magenta tint
  • Independent red, green, and blue lift/gamma/gain controls
  • Per-channel histogram and clipping information
  • Non-destructive JSON sidecars; source photographs are never overwritten
  • JPEG and 16-bit TIFF export
  • Active-photo-only Codex tools with reversible changes

Install and launch

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
.\.venv\Scripts\d3raw-editor.exe

You can also launch with:

.\.venv\Scripts\python.exe -m d3raw_editor.app

Codex connection

The editor writes only the currently open photograph to a small local session record. The MCP server can operate on that active photograph; it does not provide arbitrary file browsing.

The repository includes this portable project-scoped .codex/config.toml. Trust and open the project in Codex:

[mcp_servers.d3raw]
command = "powershell"
args = ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "scripts\\mcp.ps1"]
cwd = "."
default_tools_approval_mode = "writes"
enabled = true

Restart the Codex client after adding the server. Read operations can inspect the current adjustments, histogram, and preview. Write operations change only the sidecar or create a new export.

White-balance note

Camera and auto modes use LibRaw's camera-aware white-balance processing. Daylight uses LibRaw's daylight default. Manual temperature uses a Bradford chromatic-adaptation approximation in linear sRGB after daylight decoding. This is useful for a prototype and creative grading, but it is not intended to match Nikon NX Studio's proprietary rendering pixel-for-pixel.

Files and safety

  • Adjustments: <photo>.NEF.d3raw.json
  • Active session: %LOCALAPPDATA%\D3RawEditor\active-session.json
  • Exports: always new .jpg or .tif files
  • The application refuses to overwrite a source or an existing export

About

Non-destructive Nikon D3 RAW editor with reversible Codex MCP controls

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages