Releases: yolu-ch/kirby-video-thumbnail
Releases · yolu-ch/kirby-video-thumbnail
Release list
v1.3.1
Performance
- Smoother frame scrubbing — the live preview now draws immediately on each seek instead of waiting for the frame-decode guard the Safari fix (1.3.0) added on every scrub step, restoring responsive scrubbing. The thumbnail blob is encoded once when you settle on a frame rather than on every intermediate frame.
- Faster WebM scrubbing — WebM (VP8/VP9) isn't hardware-decoded on most hardware and has sparse keyframes, making exact-time seeks expensive. Dragging now uses
video.fastSeek()(Safari/Firefox) to snap to the nearest keyframe for a responsive scrub; the exact frame you land on is captured on settle. MP4 keeps exact seeking, so its live preview stays frame-accurate.
The saved thumbnail remains a correctly decoded, exact frame for all formats — the Safari-safe capture is preserved for the settled frame.
v1.3.0
Features
- Configurable thumbnail output — set the generated thumbnail's
template,prefix,suffixandextensionviayolu.video-thumbnail.*config options. Defaults keep the existing{videoname}_thumb.jpg+thumbbehaviour. Empty prefix/suffix reuses the video's basename; supported extensions arejpg,jpeg,png,webp. (closes #2)
Fixes
- Black thumbnails for WebM in Safari — the thumbnail is now captured from the same preview canvas the editor sees instead of decoding the video a second time in a cold element, so the saved image always matches the visible frame. The capture path is additionally hardened with
requestVideoFrameCallbackand seek/metadata timeout fallbacks. (closes #1) - Run teardown/cleanup under Kirby 4 (Vue 2) as well by adding the missing
beforeDestroyhooks.
Thanks to @jakobgrommas for the report and PR that shaped these changes, and to @medienbaecker for the original fork fix.