Austin Goodnight

Software

In progress

Curves

An open-source macOS photo editor that combines darktable's rendering pipeline with a redesigned interface, AI-assisted masking, a layered stage-and-scene editing model, and versioned edit history.

The Curves editor: filmstrip and stages on the left, photo in the center, scopes and tone controls on the right.

At a glance

  • A native macOS editor in Swift, with darktable's core modules (filmic, AgX, Color Balance RGB, color zones) re-derived rather than translated from C.
  • Stages and scenes: masked adjustment layers that can be shared across every photo shot under the same conditions.
  • GPU AI denoise, Apple Vision subject masks, live scopes and a git-style version tree.

Works todayThe full render pipeline, stages and masking, scopes and film simulation. Version history is in active development.

Overview

Curves is a native macOS photo editor I'm building on darktable's rendering pipeline, solo, with Claude Code as my development tool. It uses the same rendering math behind a faster, more approachable interface, and extends darktable with AI and smart masking, versioned edit history, and stages and scenes, a layered editing model of its own.

Curves is free and open source, made for the photography community rather than as a commercial product.

Rendering pipeline

The core rendering modules are implemented from darktable: Color Balance RGB, filmic, AgX and color zones. I re-derived each module's algorithms in Swift rather than translating darktable's C source, so the pipeline runs as native code on macOS. RAW decoding uses Apple's native RAW framework.

The rendering core is complemented by a complete set of adjustments: exposure, contrast and tone mapping; a color-preserving point curve; white balance; color wheels for global, shadow, midtone and highlight ranges; dehaze; and denoise.

Every render runs the same fixed order. Exposure, white balance and sharpening are applied by Apple's RAW decoder, then AI denoise (Intel Open Image Denoise on the GPU) and lens correction from the lensfun database. The stage stack follows, then spot healing, AI object removal and crop. While a slider is dragging, the RAW is demosaiced at preview size in draft quality, so every module after it has less to process.

Render pipeline diagram: RAW decode, denoise, lens correction, the stage stack, retouch, crop and output. Each stage expands into dehaze, Filmic or AgX, color balance, color zones, RGB curve and 3D LUT passes, followed by a mask blend.
Render pipeline
Color grading bar
Point curve with preserve color
Color zones (from darktable)
Color wheels
White balance pad
White balance faders

Tone mapping

A RAW file records far more dynamic range than a display can show. A tone mapper compresses it into a curve that keeps middle grey where it is and rolls the brightest and darkest tones off smoothly instead of clipping them. Curves offers darktable's two scene-referred tone mappers in the same slot of each stage: filmic RGB, a polynomial toe and shoulder around a linear midsection, and AgX, a sigmoid around a pivot at middle grey.

At darktable's defaults, filmic maps 12 stops, from 8 below middle grey to 4 above, and AgX maps 16.5. A plain linear transform reaches display white only 2.5 stops above middle grey, and everything brighter clips.

Plot of display output against scene exposure from minus 10 to plus 7 EV. Filmic and AgX both pass through middle grey and roll off smoothly, reaching white at plus 4 and plus 6.5 EV; a linear transform clips at plus 2.5 EV.
Filmic and AgX at darktable defaults, computed from the engine's own curve math
Tone mapping control with AgX selected, showing its curve and arrows to switch tone mappers.
Tone mapper selection

Stages and scenes

Stages and scenes form Curves' editing model. Each edit is composed of stages, where every stage is either a global or a masked adjustment layer. Masks are generated with AI-based or smart masking, allowing subjects and regions to be isolated without manual brushing.

Scenes group stages across multiple photos, so images captured under the same conditions share a single set of adjustments. Stages can also be copied between individual photos and saved as presets.

A photo's stages always render in the same order: the scene stage, the photo's own single stage, then its custom stages. Each stage is a full pass over the previous stage's result rather than one merged set of parameters, because tone curves don't add. A masked stage blends its result over its input through the mask, and masks come from five sources: Apple Vision subject selection, brush strokes snapped to edges by a guided filter, a sampled color range, and linear and radial gradients.

Stage model diagram: a decoded photo passes through the scene stage, the single stage, a custom stage and a masked stage to the rendered result. A scene stage is shared by several photos, and masks come from object selection, an assisted brush, a color range, or linear and radial gradients.
Stages, scenes and mask sources
Stages panel with Single and Custom 1 stages, each with a toggle, and masking tools.
Stages and masking tools

Version history

Edit history is stored as a tree of versions. Each version is a snapshot of the edit at a given point, and new branches can be created from any version, so alternative edits coexist without overwriting one another. This system is modeled on git branching and is currently in active development.

Version tree with branches named Original, Film Sim, Modified, No Film Sim and For Web.
Version tree

Interface

I designed the interface from scratch around two principles: minimal, descriptive controls and a high density of measured information. Live histogram, waveform, vectorscope and zone scopes are positioned above the tone controls, and the contrast control indicates the exact points at which shadows crush and highlights clip.

Histogram, waveform, vectorscope and zones
Exposure and contrast with clip points
Chroma, vibrance and saturation
Close-up and detail controls

Film simulation

Film simulation is implemented with 3D LUTs. User-supplied film stock LUTs are loaded into a library and applied with an adjustable blend.

Film simulation panel showing a Fuji FP C+ film canister and an intensity dial at 27%.
Film stock selection and blend

Next project

Analog Closed-Loop Robot Car

→