12 Commits
Author SHA1 Message Date
dotCooCoo 1289200e07 Merge main into feat/slideshow-pan-and-zoom 2026-11-10 20:09:59 -08:00
Dylan M. Taylor 0121e0ccb0 security: check caller-supplied image dimensions before sizing from them (codecs, merge, inpaint, slideshow) (#3712)
* security: check caller-supplied image dimensions before sizing from them (codecs, merge, inpaint, slideshow)

* address review: reject gain maps past the JPEG dimension limit
2026-11-10 18:07:02 -05:00
dotCooCoo 2a65e2ec70 Merge main into feat/slideshow-pan-and-zoom 2026-11-04 22:55:12 -08:00
dotCooCoo 3e9231e010 LRC-SS-PLAYBACK: test pan and zoom on very narrow and very wide photos in the slideshow
The slideshow test crops one photo to its cell's shape, to aspect 0.01 and
to aspect 50, and checks that the part that moves is the photo's visible
part of the slide, that the backdrop beside it stays and that the photo
still shows in it. The motion test now checks only the window's equal
share of width and height, which holds at any aspect.
2026-11-04 08:06:57 -08:00
dotCooCoo 32836313ee LRC-SS-PLAYBACK: tests for pan and zoom across a slide, a pause, a fade and photo aspects
The view is checked at the start, the middle and the end of a slide, while
paused and after resuming (during the fade too), and through a fade that
overlaps the move, straight and through a color. The window keeps the shape
of the visible photo for a photo with the screen's aspect, a very narrow one
and a very wide one.
2026-11-03 20:56:08 -08:00
NetterSilverandClaude Sonnet 5.5 7a7be84e41 test: pin three linked margin keys boundary and wrap merged doc comment
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 04:33:24 +00:00
dotCooCoo 41e2d5450c LRC-SS-PLAYBACK: motion comments use American spelling 2026-10-31 05:22:46 -07:00
dotCooCoo fa93d6f836 LRC-SS-PLAYBACK: pan and zoom moves and zooms each photo during playback
The new Pan and zoom setting (Settings > Slideshow > Playback, or
panAndZoom in slideshow.playback and view.slideshow) moves each photo
slowly from one window of itself to another over its slide's time, its
fade in included. Its Low to High amount (panAndZoomAmount, 0 to 1,
default 0.5) sets how far it zooms: about 1.01x at Low and 1.12x at High
for the closer view. Every photo gets its own path from the playback
seed, the pass and the photo, so each pass moves differently and a seed
replays the same paths. The window never leaves the photo.

In a composed slide the photo moves inside its image cell while the
backdrop, margins, stroke and shadow stay still; with overlays on, the
whole slide moves so an overlay is never split. Title screens do not
move. Pause freezes the motion, a photo fading out stays at its end
view, and a manual slideshow holds each photo at its start view. The
setting is off by default, saved with the library and in slideshow
templates. Exports show the photos still.
2026-10-31 04:39:00 -07:00
NetterSilverandClaude Haiku 5.5 af4d1f54a7 Keep unequal margins when merging full settings with linkMargins on
Found while testing crates/slideshow/src/settings.rs:233 and :267 (merged)

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-31 08:45:28 +00:00
NetterSilverandClaude Haiku 5.5 80e439f6dc Reject signed hex digits in #rrggbb colour parsing
Found while testing crates/slideshow/src/settings.rs:296-300 (parse_color); same pattern in crates/engine/src/slideshow.rs:117-122 (fadeColor)

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-17 00:45:25 +00:00
Jason Baldwin 12dc533396 LRC-SS-OVERLAYS: slideshow overlays: identity plate, rating stars, text with tokens, watermark
- Engine: slide_overlay (OverlaySettings in prefs.json, the new slideshow.overlays
  command): identity plate (text, or a PNG/JPEG file with its transparency; size,
  colour, opacity; render behind image), rating stars (own vector stars), up to 16
  text overlays with tokens ({caption}, {exposure}, {file}, {date}, {focal}… plus
  every rename token; unknown tags show as typed and are reported) and a drop
  shadow, each at one of nine anchors of the slide or photo plus an offset, kept on
  the slide; the export watermark on the photo. Sizes relative to the slide's
  shorter side; validated and clamped.
- Drawn by the engine as a second pass over lightcraft_slideshow::compose_with
  (new behind hook for "render behind image"); the watermark's text renderer moved
  to engine text.rs (TextLayout, Inter + craft-fonts CJK) and is shared; glyphs
  off the image are skipped so huge text stays cheap.
- rename::expand_tokens_with lets overlays add tokens without changing rename.
- Playback composes slides when overlays are on; slideshow.preview returns each
  overlay's box. Settings > Slideshow > Overlays section with live preview.
- Docs: parity row (partial), whats-new, control/MCP docs, nine locale catalogs.
- Tests: tokens, nine anchors, star count, plate image opacity and missing file,
  text shadow, resolution independence, hostile input, big-slide cost, CJK with
  craft-fonts, prefs persistence, preview and headless playback pixel checks.
2026-10-10 22:54:40 +02:00
Jason Baldwin ae033aaf32 LRC-SS-LAYOUT: slideshow layout, options and backdrop: slides composed with margins, stroke, shadow and backdrop
- New crate lightcraft-slideshow (L1, no UI): SlideSettings (margins linked or
  independent, guides, aspect preview, zoom to fill, stroke border, cast shadow,
  backdrop colour, colour wash, background image; lengths relative to the slide's
  shorter side; validated and clamped) and a CPU compose() used by playback, the
  Settings preview and slideshow.preview.
- Engine: slideshow.layout (partial merge, saved in prefs.json) and
  slideshow.preview {id?, width?, height?, path?} (PNG to path or base64);
  RenderJob::with_slide composes on the render worker; the background photo is
  rendered once and shared.
- Playback: with a non-default layout each slide is the composed screen-sized
  slide, prepared ahead like before; the default layout plays as before.
- Settings > Slideshow: Layout, Options and Backdrop sections and a debounced
  live preview of the active photo's slide (with margin guides).
- Tests: composer geometry/pixels/hostile input, command get/set/persist/preview,
  headless playback of a composed slide and of the default layout.
2026-10-10 21:47:42 +02:00