2 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 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