Accept now writes two files: OUTDIR/{cid}.png stays the untouched
full-resolution archival crop exactly as before, and a new
OUTDIR/finished/{cid}.jpg holds the resized (long-edge default 800) and
gamma/black-point-leveled derivative, saved at quality 60. Gamma/black
point/pre-blur are per-cover overridable in a new "Finish" panel (same
nudge-button + live-preview pattern as "Crop edges"), defaulting to the
global settings (gamma 1.2, long edge 800, JPEG quality 60) configurable
in Setup. cdcrop_resize.resize_image() was split out from resize_one() so
the UI can call it in-memory without file I/O, same as cdcrop_levels'
apply_levels() already allowed.
A per-cover escape hatch, same pattern as --pre-blur in cdcrop_resize.py:
off by default since the 12-cover fit only supports the flat gamma as a
general default, not a black-point push - turn it on per cover as needed.
A percentile black/white stretch was tested first and made every sample
worse (these scans already use the full 0-255 range, so clipping just
blows out endpoints). A flat gamma=1.2 darken, fit against 12 finished
covers in singled/manual/, cut the error ~60% with no regressions - used
as the default here.
Automates the resize step of the Photoshop workflow. Always box-reduces
before the Lanczos resample (reducing_gap=3.0) instead of Pillow's default
single-pass filter, which is the source of moire on large downscales -
replacing the manual "blur if I see moire" judgment call.