Repository navigation
Releases
filmlab v0.5.1
filmlab v0.5.1
Bug-fix release: the measured white balance is now actually applied.
analyze estimated per-strip white-balance gains and wrote them to
profile.wb, but develop only multiplied grade.wb (1,1,1 by
default). Every roll was therefore developed without white balance —
visible as a blue cast on C-41 rolls, and profile.wb was a dead value
in roll.toml.
The two are now composed (profile.wb × grade.wb), with grade.wb
kept as an operator multiplier. Verified by re-developing the reflxbar
100 and Portra 160 rolls: the cast is gone, dusk frames read neutral
instead of cyan, and the E-100 slides keep their natural colour.
Existing rolls need a re-run of filmlab film develop to pick this up.
No other behaviour changed.
Install: download the wheel and pip install filmlab-0.5.1-py3-none-any.whl.
filmlab v0.5.0
filmlab v0.5.0
Framing release: frames now leave the scanner with no border and a
consistent shape.
Added
- Border removal —
analyzetrims the scanner's white holder margin
and the film's black edge from every frame, then centre-crops to the
film-gate ratio. The border is found by anchoring on the dark band
(white margin -> transition -> black edge -> picture), and rows/columns
are aggregated across the strip because the gate sits at a fixed
position. --ratio 4:3— override the gate ratio (stored asfilm.ratioin
roll.toml) for a strict 4:3 delivery instead of 56:41.5.roll.toml[grade]/[export]now survive re-runninganalyze.
Fixed
- Frame edges no longer carry black bands: pitch is measured from the
unexposed gaps and frame bounds snap to them.
Verified on
Hasselblad X5 120/645 C-41 strips (13 frames, edge luminance > 0.25 on
every side, all ratios 1.333), an E-6 strip, and a Noritsu lab TIFF roll.
55 tests, CI green on Python 3.11–3.14.
Install: download the wheel from this release and
pip install filmlab-0.5.0-py3-none-any.whl.
filmlab v0.4.0
filmlab v0.4.0
First public release: a small, composable image-processing suite for
scanned film and digital photos.
filmlab film — develop scanned film
- Reads Hasselblad/Imacon 3F (
.fff) and 16-bit TIFF strips directly
(big-endian TIFF container, zero-copy memmap, no LibRaw). - Automatic frame splitting for long strip scans with film-format
priors (135, half-frame, 645, 6×6, 6×7, 6×9, or a fully custom spec).
Pitch is measured from the unexposed gaps themselves and frame edges
snap to them, so dark frames, hazy frames and light-struck leader/tail
do not shift the cut positions. - C-41: orange-mask removal and inversion in one step, per-channel in
log density. Grey-world white balance from bright near-neutral pixels,
per-frame Dmax exposure. - E-6: linear develop from per-channel film black to a per-frame
white point. - Stages are separable:
split(geometry only),analyze(split +
colour profile),preview(fast low-res),develop(full-res TIFF +
JPEG with sRGB ICC),convert --mode raw|linear(grading-free exports
for darktable/Capture One). - Everything lands in a per-roll
roll.tomlyou can edit and re-run, so
a roll is reproducible months later. Contact sheet included.
filmlab lut — looks for digital photos
.cube3D LUTs (trilinear) with strength blending, plus light grading
flags (--black-point/--contrast/--saturation) for flat lab scans.- Reads JPG/TIFF/PNG and RAW via rawpy (
pip install "filmlab[raw]"),
applies camera white balance, 16-bit throughout. filmlab lut pick IMG.jpgwrites a self-contained HTML page comparing
every installed look at once. Drop free CLUT packs into
~/.filmlab/luts/and they become presets.
How it looks
One X5 120/645 C-41 strip: auto-split, raw negative, mask removed
(correct but flat), graded. See "Flat results" in the README for the
tone recipe.
Verified on
Hasselblad X5 scans of 120/645 strips (C-41 and E-6), Noritsu lab TIFFs,
and a Nikon Z 6_2 NEF.
Install
pip install filmlab-0.4.0-py3-none-any.whl # or from the sdist
pip install "filmlab[raw]" # + RAW supportNotes
- 48 tests, ruff + pre-commit, CI on Python 3.11–3.14.
- The density-domain develop model and the estimation heuristics follow
imaconfilm and darktable's
negadoctor. No code was copied — see the README acknowledgements. - Not yet on PyPI; install from this release's assets.
