Skip to content
saidmriguaPublic

About

Film negative inversion for camera scanning: RAW/TIFF to positive, printer-lights color workflow, JPEG/TIFF export. macOS + Windows.

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

SMneg icon

SMneg

FREE & OPEN SOURCE · V0.2.0 · SMNEG = SAID MRIGUA NEGATIVE

From negative to picture.

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.

Download for macOS Download for Windows

CI License: Apache-2.0 Python 3.10+ Platforms

The apps are not code-signed: your system asks for confirmation the first time. How to open them · Release notes & checksums

Color photograph of a traditional Moroccan water seller in a red outfit walking among pigeons on a palm-lined square, converted from a film negative with SMneg

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


Before / After

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
Boats and fishing nets, the negative Boats and fishing nets, after conversion with SMneg
Water seller and pigeons, the negative Water seller and pigeons, after conversion with SMneg
Stacked colored crates, the negative Stacked colored crates, after conversion with SMneg
Round building on a square, the negative Round building on a square, after conversion with SMneg
Show the seven other frames
Negative SMneg
Sitting on the square, the negative Sitting on the square, after conversion with SMneg
Old facade and street lamp, the negative Old facade and street lamp, after conversion with SMneg
Nets drying, a dog asleep, the negative Nets drying, a dog asleep, after conversion with SMneg
Sign by the shore, the negative Sign by the shore, after conversion with SMneg
Shop doorway, the negative Shop doorway, after conversion with SMneg
Covered market, the negative Covered market, after conversion with SMneg
Water tank and dogs, the negative Water tank and dogs, after conversion with SMneg

What it does

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.

New in 0.2.0: the Scientific engine

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.


See it in action

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.


Tutorial

HOW SMNEG WORKS, IN TEN SLIDES

Slide 1 of 10, How SMneg works: from the scan to the final file, with every keyboard shortcut Slide 2 of 10, Step 01 Scan: photograph the negative in RAW on an even light source; expose to the right without clipping
Slide 3 of 10, Step 02 Import: open a roll with Select Roll Folder, or let Hot Folder import each new RAW as you shoot Slide 4 of 10, The interface: toolbar, enlarged frame, per-frame C M Y D values and status, and the control panel
Slide 5 of 10, Step 03 Correct: printer lights, Q/A cyan, W/S magenta, E/D yellow, arrow up/down density, T tone, L Auto print, N grey picker, B film base, R reset Slide 6 of 10, Step 04 The whole roll: Hold, copy and paste settings, crop and rotate, mark a frame Pass, undo any change
Slide 7 of 10, Step 05 Export: export the roll with Cmd+E, JPEG or 16-bit TIFF at full resolution, named from the session Slide 8 of 10, Keyboard shortcuts: a keyboard map with every SMneg shortcut, colored by function
Slide 9 of 10, Cheat sheet: all shortcuts grouped by color, density and tone, image, view, roll and export Slide 10 of 10, Your turn: try it on your next roll, free for macOS (Apple Silicon), Windows and Python

Every shortcut is also in docs/shortcuts.md, and the step-by-step guide is docs/workflow.md.

The app

Grid view with six frames, one of them marked PASS

Grid view: six frames per page, printer-lights keys, density and tone controls. Frames marked PASS are skipped at export.

Enlarged view Export
Enlarged view Export dialog
Session information Keyboard shortcuts
Session information dialog Keyboard shortcuts

Install

REQUIREMENTS AND FIRST LAUNCH

macOS
macOS 11+ · Apple Silicon (M1 or newer)

  1. Open SMneg-macOS-arm64.dmg and drag SMneg to Applications.
  2. macOS 14 and older: right-click the app, then Open.
  3. macOS 15 and newer: System Settings → Privacy & Security, then Open Anyway.

Intel Mac: install from source.

Download .dmg

Windows
Windows 10/11 · 64-bit

  1. Unzip SMneg-Windows-x64.zip anywhere.
  2. Run SMneg.exe inside the folder. Keep the other files next to it.
  3. If SmartScreen warns: More info → Run anyway.

The Windows interface has not been checked on real Windows hardware yet.

Download .zip

From source
Python 3.10+ · macOS, Windows

git clone https://github.com/saidmrigua/SmNeg.git
cd SmNeg
python -m venv .venv
source .venv/bin/activate
pip install -e .
smneg

Windows: .venv\Scripts\activate. Or install the wheel attached to the release.

Installation guide

Allow several GB of RAM for 45 MP frames.

Quick start

  1. Click NEW SESSION, fill in the shoot information, then Select Roll Folder (or HOT FOLDER).
  2. Adjust: Q/A W/S E/D color, ↑/↓ density. Press P to skip a frame.
  3. ⌘E exports the roll. Full walk-through: docs/workflow.md.

In detail

  • 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
  • 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 .pef and 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).

Documentation

Start at the documentation index: installation · workflow · shortcuts · file formats and metadata · troubleshooting · how it works · calibrating a film · development · releasing · changelog · audit report

Color accuracy, honestly

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

Status and limits

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.py is 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.toml are conservative.

Tests

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.

Contributing and support

Bug reports, ideas and pull requests are welcome: CONTRIBUTING.md · open an issue · code of conduct · security policy. To cite SMneg, see CITATION.cff.

License

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

About

Film negative inversion for camera scanning: RAW/TIFF to positive, printer-lights color workflow, JPEG/TIFF export. macOS + Windows.

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages