
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.
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.
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.
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.

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.
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.


