Skip to content

Conversation

@midzelis
Copy link
Collaborator

Large rework photo-viewer/asset-viewer

Instead of spinner, use a new adaptive-image component. This component will display the thumbhash as the base layer - quickly followed up by the (highly likely) pre-cached low-res thumbnail, and then kick off the preview-size thumbnail. Mouse-wheel zoom is supported using all formats: thumbhash, preview. Zoom will automatically 'upgrade' the preview thumbnail to be 'fullsize' (or original) on zoom, like before, but now there will be no flicker when the full quality one loads.

All next/previous thumbnails are eagerly pre-loaded, and all pending images are canceled if navigation occurs before they finish loading. Preloads are lower priority, and will back off if a main-image is being loaded.

Thumbhash action supports update.
Zoomimage action supports update (and restores previous zoom state if present (bugfix))
Thumbhash and previews use the zoom scale state.

Tests coming soon

@github-actions
Copy link
Contributor

….svelte, increase performance esp. on low BW conn
@alextran1502
Copy link
Member

When I stop at an asset, wait a few seconds and navigate to the next. I'd expect the full preview image is loaded right away, but instead I am still seeing the thumbhash flash in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants