Devlog · Part 10 ·

Fix

The Editor, built in four days and shipped in build 0.3. Each edit is one shader for the preview and the export, and the edit format gained a formulas appendix that another app could follow. Plus what I found by using it.

The fourth milestone, Fix, is the Editor: crop and straighten, rotate and flip, light and color, effects, red-eye, and Enhance, with undo that survives closing the photo. Its test is that I fix my own photos with Seura instead of another app. As of build 0.3, I can.

Seura's Editor in dark mode on Windows, showing a flowering tree photographed from below against a blue sky, with the sun shining through the white blossoms. The header shows the file name, CIMG0626.JPG, and Edits saved automatically, with undo, redo and the zoom controls at Fit. On the right, Hold to compare and Done sit above Enhance, Crop and straighten, and the rotate and flip buttons. Under Light, Brightness is 0, Contrast +40, Highlights −42 and Shadows +40; under Color, Temperature is −23, Tint 0 and Saturation +48. Revert to original is pinned at the bottom of the panel, and a filmstrip of the folder's flower photos runs along the bottom.
The Editor in build 0.3. The sliders redraw the photo on every frame as they move, and each change is saved beside the photo.

Claude Code drafted the M4 work plan with eight questions, six for a design session and two for me, and built it in twelve slices over four days, in about forty pull requests. First came an interim build, 0.2.2, my choice, so testers could say which version they have.

One formula, written down

Every edit is one function in a shader that both the live preview and the export run (decision 0004), so what you see while dragging a slider is what you get. That was the plan from the start. M4 added something the plan had only promised: the edit format said its formulas would be “added alongside the reference implementation”, and M4 is that implementation.

So Claude Code wrote each formula into the format’s appendix as it built the operation, with test values another app can check itself against, and the design session reviewed them. Writing them down caught real problems. A crop’s numbers needed full 64-bit precision: in 32 bits, a 0.7-high crop of a 5-pixel photo comes out 3 pixels high instead of 4. And the review changed code already merged: saturation had been clipping colors outside the working color space.

At the end, a small Python program written straight from the appendix’s text rendered seven test images, and Seura’s GPU matched all seven within one level on the first run. The appendix is complete enough for another app to follow it. Freezing the format at 1.0 waits for M7.

Highlights and shadows

Highlights and shadows need to know what’s bright and dark around each pixel, without the glow a plain blur leaves along edges. Claude Code compared three methods on generated scenes with hard edges, such as a dark tree against a bright sky, and recommended a guided filter: its halo is too small to see, and the older WebGL2 preview on macOS 13 to 15 can run it. I agreed, and on my own photos the sliders don’t feel too strong or too weak. Claude Code’s view was that they’re a little gentler than Lightroom’s at the extremes, which also keeps noise down.

Crop and straighten mode on the same photo of a flowering tree. The photo is turned 9.9 degrees, so its edges slant against the dark surround, and a 4:3 crop box with thirds lines sits inside it, labeled 4:3 · 2,108 × 1,581. Outside the box the photo is darkened. The panel on the right shows the aspect ratios, with Original and Landscape chosen, the Straighten slider at +9.9°, the note The crop shrinks as needed so no empty corners show, Reset crop, and Cancel and Done. The header says Enter to apply · Esc to cancel.
Crop and straighten. The box stays inside the turned photo, and slides along its slanted edge when dragged against it.

What I found by using it

As in M3, the automated tests passed and my testing found what they couldn’t:

Enhance and red-eye were Claude Code’s to build and mine to judge. Enhance’s white balance took three methods to get right; on my photos it does make them generally better, and I accepted it as it is. Red-eye on an extreme photo left a little red but clearly improved it. I set aside a strength slider, which would change the format for what’s usually a one-click fix.

Built for an unlikely case

Seura notices when a photo’s edits change outside it while the photo is open in the Editor, and asks whether to keep yours or load theirs. The main way that happens is editing the same photo on two computers at once through a synced folder, which is uncommon. Claude Code agreed, and gave two reasons it was worth building anyway:

Fast enough

The target for live preview is 30 frames a second while dragging a slider on a 12 to 48 megapixel photo. With every operation on, every slider drew every frame the display shows, on both preview paths: 120 a second on my Windows PC, and 60 on the Mac, as many as macOS’s web view gives a page (M4 benchmarks).

Measuring everything again found one slowdown. On Windows, the next photo in the Viewer went from 62 ms in M3 to about 80 ms: within the 150 ms target, but over our aim of half that. Claude Code compared two builds back to back and traced it to highlights and shadows, which load an extra 6 MB image per photo, and large transfers into the Windows web view are slow. I chose to fix it later (#190).

Known issues in 0.3

What’s next

M4 is done once I’ve fixed my own photos with 0.3 on both machines, which I’m starting now. M5 is Reuse and share: export, with the conversion to standard colors that other apps expect, copying edits between photos, and presets. The color fix in #188 comes first, so exports start from colors that weren’t clipped.