Skip to content

filmlab v0.4.0

Choose a tag to compare

@1vanz 1vanz released this 27 Nov 04:38
· 8 commits to main since this release

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.toml you can edit and re-run, so
    a roll is reproducible months later. Contact sheet included.

filmlab lut — looks for digital photos

  • .cube 3D 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.jpg writes 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

pipeline

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 support

Notes

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