mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-27 03:27:14 -06:00
set_aspect always turned the ratio to the image's orientation, so a Custom ratio taller than wide came out landscape on a landscape photo, and a ratio picked after X (crop.rotateAspect) turned the crop back. A named ratio now takes the crop's present orientation (landscape, or portrait after X; a square crop follows the image), a custom [w, h] is used as given, and crop.aspect takes orientation: "crop" | "given" to choose. The window reapplies the remembered ratio to an untouched photo with orientation "crop", as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AbegtYaPuwqZ81pGfELsFK