Repository navigation
LR-EXP-WATERMARK: rotate the watermark in quarter turns (#827, stacked on #845) - #847
Merged
bflatastic merged 4 commits intoOct 11, 2026
Merged
Conversation
…torytold#827) Watermark.inset becomes inset_x (from the left or right edge) and inset_y (from the top or bottom edge), like Lightroom Classic's watermark editor. The watermark keys are insetX and insetY; the old inset key still reads as both, so saved presets and existing MCP calls keep working. The Export dialog's Inset slider becomes Horizontal inset and Vertical inset, each greyed out when the position is centred along its axis. cargo fmt reflows WM_POSITIONS and its test from the previous commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A watermark (text, horizontal or vertical, or a graphic) can be turned 0, 90, 180 or 270 degrees clockwise, like Lightroom Classic's rotate buttons. It is sized before it is turned and placed and inset by the turned box; the shadow still falls down and to the right. New watermark key `rotation` (other values are errors); settings without it draw unturned. The Export dialog gets a Rotate row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 10, 2026
This was referenced Oct 11, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #827. Stacked on #845 (which is stacked on #833): review only the last commit.
Lightroom Classic's watermark editor can rotate a watermark in 90° steps. This adds the same.
What changed
Watermark.rotationandwatermarkkeyrotation: 0, 90, 180 or 270 degrees clockwise, default 0. Any other value is an error fromapp.export/ MCP, like the other watermark checks. Settings saved without the key draw unturned.LR-EXP-WATERMARKparity row updated.Tests
watermark_rotation_turns_the_text_in_its_corner:graphic_watermark_is_placed_scaled_and_blended: a half-transparent logo at 90°, 180° and 270° covers exactly the expected pixels.watermark_params_are_validated: 45, -90, 360, "90" and 90.5 are errors, and 270 passes.Merge order note
#843 and this stack both edit the watermark tests and the
LR-EXP-WATERMARKrow inexport.rsanddocs/parity-checklist.md. Whichever lands second has a small conflict (keep both sides). I'll rebase whichever is second.CI
cargo xtask cisteps pass exceptlightcraft-mcpe2eexport_progress_and_cancel, which fails the same way onmainon this machine (#674, fix in #668).🤖 Generated with Claude Code