Keep Lightroom crops on the photograph aspect and send file edits back #304

Merged
spark merged 1 commits from task/lightroom-roundtrip into main 2026-11-23 17:48:44 +00:00
Owner

Summary

  • A straightened crop is stored as the corners Lightroom turns back around the crop centre, so the crop tool keeps the photograph's own aspect instead of Custom.
  • Edits Lightroom writes into the work-folder original (crop, pick, stars, colour) are read from that file, by the original's hash, and sent to the server while the socket is already up. A photo already delivered is sent again to that destination about a minute later.
  • AGENTS.md, ARCHITECTURE.md and the editing rules state what an automatic edit may not do: another aspect ratio, a second XMP description, or a stale checkout.

Test plan

  • vitest: lightroom crop corners, sidecar, offline queue, app
  • In Lightroom, Read Metadata from Files on a straightened photo and confirm the aspect is the photograph's
  • Change the crop in Lightroom with XMP written to the file, and confirm PhotoReport sends it and the previous destination is replaced
## Summary - A straightened crop is stored as the corners Lightroom turns back around the crop centre, so the crop tool keeps the photograph's own aspect instead of Custom. - Edits Lightroom writes into the work-folder original (crop, pick, stars, colour) are read from that file, by the original's hash, and sent to the server while the socket is already up. A photo already delivered is sent again to that destination about a minute later. - AGENTS.md, ARCHITECTURE.md and the editing rules state what an automatic edit may not do: another aspect ratio, a second XMP description, or a stale checkout. ## Test plan - [x] vitest: lightroom crop corners, sidecar, offline queue, app - [ ] In Lightroom, Read Metadata from Files on a straightened photo and confirm the aspect is the photograph's - [ ] Change the crop in Lightroom with XMP written to the file, and confirm PhotoReport sends it and the previous destination is replaced
spark added 1 commit 2026-11-23 17:48:09 +00:00
Keep a straightened crop on the photograph's aspect and send Lightroom's changes back.
ci / rust (pull_request) Successful in 7m2s
ci / typescript (pull_request) Failing after 10m13s
91bc9aefc7
Lightroom turns the stored corners around the crop centre, so writing the levelled rectangle made the crop Custom. The file now stores those corners, the original is found by its own hash, and edits already queued go out while the socket stays up.
spark merged commit ed9c382356 into main 2026-11-23 17:48:44 +00:00
Author
Owner

Merged. A straightened crop is stored as the corners Lightroom turns back, so the crop tool keeps the photograph aspect. Crop, pick, stars and colour written into the work-folder file are read by the original hash and sent while the socket is already up. A destination that already has the photo and is not originals-only is replaced about a minute later. Exposure and the other develop sliders are written out and are not read back. AGENTS.md now requires the latest origin/main before work, and forbids changing the aspect or putting newsroom fields on a second XMP description. vitest: lightroom crop, sidecar, offline queue and app, 22 passed. Lightroom itself was not reopened to confirm the aspect menu.

Merged. A straightened crop is stored as the corners Lightroom turns back, so the crop tool keeps the photograph aspect. Crop, pick, stars and colour written into the work-folder file are read by the original hash and sent while the socket is already up. A destination that already has the photo and is not originals-only is replaced about a minute later. Exposure and the other develop sliders are written out and are not read back. AGENTS.md now requires the latest origin/main before work, and forbids changing the aspect or putting newsroom fields on a second XMP description. vitest: lightroom crop, sidecar, offline queue and app, 22 passed. Lightroom itself was not reopened to confirm the aspect menu.
Sign in to join this conversation.