5 Commits
Author SHA1 Message Date
aarbit dbe6c44b68 Integrate resize+levels finishing into the review UI's accept flow
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.
2026-11-11 23:38:07 -06:00
aarbit ab9aa05ac2 Add --black-point to cdcrop_levels.py
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.
2026-11-10 23:41:52 -06:00
aarbit 80913c3c3e Add cdcrop_levels.py: flat gamma darken fit to Alex's Levels picks
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.
2026-11-10 23:19:11 -06:00
aarbit e8091c5a60 Add cdcrop_resize.py: anti-aliased downscale + optional unsharp mask
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.
2026-11-10 18:53:11 -06:00
aarbit 5ac483c248 Initial commit: CdCrop engine, review UI, and tuner 2026-11-10 18:46:37 -06:00