fix: respect config film_type to force negative inversion

NegativeDetector now accepts an optional forced FilmType. When
film_type != "auto" in config.ini, auto-detection is skipped and
the configured type is applied directly. build_pipeline() in
CliRunner maps c41→ColorNegative and bw→BWNegative accordingly.

Default config changed from film_type=auto to film_type=c41 to
match the project's primary use case (C-41 color negatives).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christoph K.
2026-03-14 09:56:39 +01:00
parent ee016b9a5a
commit e740234a06
4 changed files with 48 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ file_extensions = arw,cr2,cr3,nef,dng,orf,rw2,raf,pef,jpg,jpeg,png,tif,tiff
# auto NegativeDetector analyses the histogram and orange mask
# c41 force C-41 colour negative processing
# bw force B&W negative processing
film_type = auto
film_type = c41
# Output format:
# png16 16-bit PNG (lossless, archival quality)