Skip to content

Fixes thumbmail capture from CivitAI video previews#1408

Merged
mcmonkey4eva merged 1 commit into
mcmonkeyprojects:masterfrom
richardtallent:fix/civitai-video-preview
Jun 5, 2026
Merged

Fixes thumbmail capture from CivitAI video previews#1408
mcmonkey4eva merged 1 commit into
mcmonkeyprojects:masterfrom
richardtallent:fix/civitai-video-preview

Conversation

@richardtallent
Copy link
Copy Markdown
Contributor

onloadeddata fires when the browser has the first frame's data, but doesn't guarantee the video decoder has rendered it into a drawable state. Calling drawImage at that point captures a transparent PNG.

This fix seeks to a concrete timestamp and waits for onseeked, which fires only after the frame is fully decoded and ready to paint.

@mcmonkey4eva mcmonkey4eva merged commit 334930b into mcmonkeyprojects:master Jun 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants