FREE & OPEN SOURCE · V0.2.0 · SMNEG = SAID MRIGUA NEGATIVE
SMneg inverts film negatives you photograph with a digital camera.
RAW or 16-bit TIFF in, lab-style printer-lights color, full-resolution JPEG or 16-bit TIFF out.
The apps are not code-signed: your system asks for confirmation the first time. How to open them · Release notes & checksums
Camera scan, converted with SMneg 0.2.0. No retouching. Photograph © Said Mrigua.
Website · Before / After · Features · Demo · Tutorial · Install · Documentation · License
Created and developed by Said Mrigua · Copyright © 2026 Said Mrigua
ELEVEN FRAMES FROM ONE ROLL
The negative as photographed, and the result. Nikon Z8 camera scans of one roll, converted with SMneg 0.2.0 (Scientific engine). No retouching.
| Negative | SMneg |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
BUILT FOR CAMERA SCANNING
|
IN RAW and 16-bit TIFF Nikon, Fujifilm, Canon, Sony, DNG and every other RAW format LibRaw reads. 16-bit TIFF keeps its full precision. |
COLOR Printer lights Correct like an analog enlarger or a lab scanner: cyan, magenta, yellow and density, one key per step. |
ROLL Whole-roll workflow Hot Folder import while you shoot, copy-paste and Hold, crop, rotate and mirror, undo for every change. |
OUT Full-resolution export JPEG or 16-bit TIFF with an sRGB profile, files named from your session, metadata embedded in every file. |
|
FILM BASE The orange mask, measured Found on the rebate, on scans of the clear leader, picked by hand (B) or shared by the roll. |
DENSITY A grey stays grey Density above base, the three dye layers balanced over the whole roll. B&W film is detected and kept neutral. |
AUTO PRINT Exposure and contrast Set for each frame like a lab printer (L), with the roll's colour. Off: a flat 1:1 master. |
PROFILES Calibrate your film Grey picker (N), film profile from a ColorChecker on film, camera profile from an IT8 target. |
The Classic engine of 0.1.0 is still there, unchanged, for comparison and for older sessions. How both engines work: docs/how-it-works.md.
OPEN, CORRECT, EXPORT. ONE MINUTE.
Recording of the real app, SMneg 0.2.0, on six Nikon Z8 scans: open the roll, rotate and auto-crop, printer-light correction, Auto print and tone profiles, copy and paste, pass a frame, export. Importing is sped up, as marked on screen. The preview above plays faster than the video. No sound.
HOW SMNEG WORKS, IN TEN SLIDES
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Every shortcut is also in docs/shortcuts.md, and the step-by-step guide is docs/workflow.md.
Grid view: six frames per page, printer-lights keys, density and tone controls. Frames marked PASS are skipped at export.
| Enlarged view | Export |
|---|---|
![]() |
![]() |
| Session information | Keyboard shortcuts |
|---|---|
![]() |
![]() |
REQUIREMENTS AND FIRST LAUNCH
|
macOS
Intel Mac: install from source. |
Windows
The Windows interface has not been checked on real Windows hardware yet. |
From source git clone https://github.com/saidmrigua/SmNeg.git
cd SmNeg
python -m venv .venv
source .venv/bin/activate
pip install -e .
smnegWindows: |
Allow several GB of RAM for 45 MP frames.
- Click NEW SESSION, fill in the shoot information, then Select Roll Folder (or HOT FOLDER).
- Adjust: Q/A W/S E/D color, ↑/↓ density. Press P to skip a frame.
- ⌘E exports the roll. Full walk-through: docs/workflow.md.
- Scientific engine (default), see How it works:
- the film base (orange mask) is measured on the rebate, on scans of the roll's clear leader
(film base reference), picked by hand (
B) or shared by the roll; bare light and the film holder are rejected - density above base, with the three dye layers balanced over the whole roll, so a grey stays grey whatever is in the frame; B&W negatives are detected and rendered neutral
- Auto print (
L): automatic exposure and contrast per frame, like a lab printer, with the colour of the roll; the meter can follow each frame, the whole roll, or a balance of both. Off: a flat 1:1 master - grey picker (
N, one or several greys) and film-base picker (B) in the enlarged view - optional film profile calibrated from a ColorChecker photographed on the film (density crosstalk, dye balance, contrast; Calibrating a film) and optional camera profile from an IT8 transparency target
- the film base (orange mask) is measured on the rebate, on scans of the roll's clear leader
(film base reference), picked by hand (
- Classic engine: the original 0.1.0 inversion (per-frame auto levels), kept for comparison and for older sessions
- Files in: camera RAW (
.nef .raf .dng .cr2 .cr3 .arw .orf .rw2 .pefand the other formats LibRaw reads), 8/16-bit TIFF, JPEG and PNG. An embedded ICC profile says how a file is encoded; without one, 8-bit files are taken as sRGB and 16-bit TIFF as linear - Files out: JPEG 8-bit or TIFF 16-bit with an embedded sRGB ICC profile, EXIF/XMP metadata and an optional
metadata.json; Photo Mechanic style filename templates ({filenamebase}_{seqn}). See docs/file-formats.md - CMY / RGB color keys, density, contrast, saturation, tone profiles, sharpness, rotation, mirror, auto and manual crop
- In-place zoom with full-resolution decoding, flat-field (diffuser) correction, clipping preview
- Undo / redo, copy-paste settings (a pasted frame is printed like the copied one), Hold, 6-frame navigation,
keyboard help on
F1 - Sessions: enter client / film / copyright information once at New Session; it pre-fills the export dialog
- Hot Folder watching; on macOS, optional capture trigger for Nikon NX Tether
Privacy. Everything runs locally. Nothing is sent over the network and there are no accounts or API keys.
Settings use Qt's QSettings under the name SMneg; each session keeps its data in smneg-session.json in its folder
(older frontier-session.json files still open).
Built for photographers who scan film with a digital camera. The workflow will feel familiar to people who have used Frontier-style scanning controllers. SMneg is an independent project, not affiliated with FUJIFILM or Nikon (see NOTICE).
Start at the documentation index: installation · workflow · shortcuts · file formats and metadata · troubleshooting · how it works · calibrating a film · development · releasing · changelog · audit report
Version 0.1.0 was tested by the community on IT8 targets shot on film and had large grey errors (ΔE 5.8–21.5): its
"film base" step had no effect and density was shown as screen brightness. The full audit is in
AUDIT_REPORT.md. The Scientific engine is the answer to it. On the synthetic film model of
tests/audit/audit_color.py (Portra- and Ektar-like stocks, D65 and LED light), grey ΔE00 falls from 13–16 (0.1.0)
to 2.2–3.1 after one density setting, and to about 0.9 C* on the greys with a film profile. These are simulation
results: measurements on real IT8 / ColorChecker targets shot on film are welcome (open an issue with the scans).
SMneg is in beta (0.2.0). It is used daily on macOS; Windows is expected to work but has not been tested on real hardware yet (CI runs the tests and a start-up self-test of the built app on both).
| macOS | Windows | |
|---|---|---|
| Inversion, zoom, export | yes | expected to work |
| Nikon NX Tether capture button | yes (needs Accessibility permission) | disabled |
| Pre-built app | .dmg for Apple Silicon only (Intel: run from source), not notarized |
.zip (64-bit), not signed |
- Automatic neutral balance without a film profile is estimated per roll; a slight cast can remain in the
extreme highlights or shadows. Grey picks (
N) or a film profile correct it. - A camera profile (IT8 transparency) is exact for slides; for negatives it is an approximation, and a film profile (ColorChecker on film) is the more accurate correction. Using both at once is not recommended.
- Export is sRGB only (no Adobe RGB / ProPhoto yet). The app's windows are declared sRGB, so macOS shows the preview color-managed on wide-gamut displays.
- 45 MP class frames need several GB of RAM (zoom caches the last full-resolution frame).
- RAW demosaicing speed is bounded by LibRaw; the inversion itself is parallelized.
window.pyis large; splitting it is planned. Offscreen Qt tests cover crop, undo/redo, sessions and TIFF export; visual and real-camera checks remain manual.- 0.2.0 was tested with PySide6 6.8 and 6.12, NumPy 2.2 to 2.5, Pillow 12 and 13, rawpy 0.26 to 0.28, OpenCV 4.10
and 5.0, on Python 3.10, 3.12 and 3.13 (macOS, Apple silicon; Windows in CI); the bounds in
pyproject.tomlare conservative.
pip install -e ".[dev]" && QT_QPA_PLATFORM=offscreen pytest -q
python tests/audit/audit_color.py # color-accuracy report (Classic vs Scientific, synthetic film)304 tests. tests/test_scientific.py and tests/test_film_profile.py measure color accuracy (grey ΔE, neutrality,
film base, B&W, scan-exposure invariance, preview = export); tests/test_gui_scientific.py drives the pickers, Auto print,
profiles and import through the real window. tests/test_engine_golden.py keeps the Classic engine unchanged; the others cover the
color pipeline, crop, flat-field, filename templates, sessions, settings migration, TIFF/XMP and the hot folder.
tests/test_gui_workflow.py exercises real Qt widgets with isolated temporary settings and synthetic scans.
Bug reports, ideas and pull requests are welcome: CONTRIBUTING.md · open an issue · code of conduct · security policy. To cite SMneg, see CITATION.cff.
Code: Apache License 2.0, Copyright © 2026 Said Mrigua. See LICENSE and NOTICE. You may use, modify and share the code under that license, keeping the copyright and attribution notices.
Photographs, video and tutorial slides in docs/images/ and docs/media/ are © 2026 Said Mrigua, all rights
reserved. They are included to illustrate the software and may not be reused without permission.
Third-party libraries keep their own licenses: see THIRD_PARTY_LICENSES.md. The pre-built apps contain them.
SMneg · Created and developed by Said Mrigua, photographer, Morocco
Copyright © 2026 Said Mrigua · Code licensed under Apache-2.0 · Sample photographs © Said Mrigua, all rights reserved
smneg.saidmrigua.com · saidmrigua.com · @mrigua_said · Source · Releases · Report an issue





































