Files
negative-converter/config.ini
Christoph K. e740234a06 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>
2026-03-14 09:56:39 +01:00

52 lines
1.6 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# photo-converter configuration
# Lines starting with # or ; are comments.
# Copy this file and adjust paths before running in batch mode:
# photo-converter --batch --config config.ini
[batch]
# Directory containing input images (RAW or standard formats)
input_dir = import
# Directory where converted images are written
output_dir = output
# Scan input_dir recursively into subdirectories (true/false)
recursive = false
# Comma-separated list of file extensions to process (case-insensitive)
file_extensions = arw,cr2,cr3,nef,dng,orf,rw2,raf,pef,jpg,jpeg,png,tif,tiff
[conversion]
# Film type detection strategy:
# auto NegativeDetector analyses the histogram and orange mask
# c41 force C-41 colour negative processing
# bw force B&W negative processing
film_type = c41
# Output format:
# png16 16-bit PNG (lossless, archival quality)
# png8 8-bit PNG (lossless, smaller files)
# tiff16 16-bit TIFF (lossless, for professional editing)
# jpg 8-bit JPEG (lossy, smallest files)
output_format = jpg
# Output bit depth (8 or 16); ignored when format is jpeg
output_bit_depth = 16
# Automatically detect and crop the film frame (true/false)
auto_crop = true
# Apply unsharp-mask sharpening (true/false)
sharpen = true
# Invert negative to positive (true/false)
# Set to false if input is already a positive (slide/print)
invert = true
[quality]
# JPEG output quality [0-100]; only used when output_format = jpg
jpeg_quality = 95
# Unsharp-mask strength [0.0-1.0]
sharpen_strength = 0.5