* security: check caller-supplied image dimensions before sizing from them (codecs, merge, inpaint, slideshow)
* address review: reject gain maps past the JPEG dimension limit
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.
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.
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.
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]>
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]>
- 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.
- 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.