
Windows apps
Softbox
A web photo and video editor that measures each picture and sets its sliders from what it finds.
- When
- Aug – Nov 2026
- Status
- Live, in daily use
- Built with
- JavaScriptReactViteWebGL2WebAssemblyIndexedDBVitest
Softbox is an installable web app (PWA) that edits photos and videos entirely on the device. It opens a folder of pictures, measures the tone, colour and structure of each one, and sets ordinary sliders from those measurements, explaining every move in plain English. It works on local folders or on its owner's own Nextcloud, and no photo is sent anywhere else.
The need
Correcting a set of photos one by one is slow, and a filter applies the same change whatever each picture needs. Softbox measures what is actually off in each photo and moves the same sliders a person would, so any single correction can be overruled without losing the rest.
What was built
- A measuring engine for tone, colour and structure: histograms and percentiles, clipping, an illuminant estimate, local contrast, a noise floor and a 16×16 brightness grid, without ever looking at what the photo shows.
- A WebGL2 pipeline in which the preview, the export and the live histogram run the same shaders, so what is on screen is what gets saved.
- HEIC decoding in the browser through WebAssembly, with an iPhone's Display P3 colour converted to sRGB as it is decoded; JPEG exports are checked on the file itself (quality 100, no chroma subsampling, no metadata).
- Edits kept as a stack of layers (Auto, presets, manual) that saves itself five seconds after the last change, with records shared across devices and merged on conflict through conditional requests.
- Video editing on the same page as photos: cuts on a timeline, copied losslessly when whole keyframe groups allow, otherwise re-encoded on the device.
- Edits never write over an original: copies go to a separate folder, and a local source folder is opened with read-only browser permission, pinned by tests.
What was hard
- Keeping an iPhone clip's HDR after editing in Firefox, which offers only 8-bit frames and no HEVC encoder. Softbox brings its own x265 encoder compiled to WebAssembly, decodes at 10 bits, runs the same grading passes in half floats and writes 10-bit HEVC tagged HLG. Past 2 GB of WebAssembly memory, addresses came back negative and broke every frame of a 4K copy; reading them unsigned fixed it, and holding one frame at a time above 1080p halved the memory used (2.3 to 1.15 GB).
- Run over a real photo set, automatic white balance pushed correctly warm photos to its coldest limit on a third of them: Grey World-style estimators assume a scene averages to grey, so a frame filled with a warm surface reads as orange light. A third estimator over near-neutral midtones only, weighted by how many such pixels the frame holds, corrected it; no synthetic test image had shown the defect.
- The same run showed that clarity and most of the sharpening never switched on: the noise threshold had been tuned on synthetic images that read almost no noise, while real photos measured well above it.