@joshuabaker/video-poster-blur
v1.0.0
Published
Generate a Base64 data URI blur placeholder from a video for use as a poster attribute
Readme
Video Poster Blur
Blur placeholder images from video files, built on ffmpeg and sharp.
- 🎬 Grabs the first frame from any video format
- 🔬 Shrinks it down to a tiny image that blurs naturally when scaled up
- 📦 Outputs a ready-to-use data URI for
<video poster="..."> - 🤖 Includes a Claude Code skill for agent integration
Prerequisites
Node.js (v18.3+) and ffmpeg must be installed:
brew install ffmpegUsage
npx @joshuabaker/video-poster-blur video.mp4
# data:image/png;base64,iVBORw0KGgo...
npx @joshuabaker/video-poster-blur video.mp4 --width 20Options
| Flag | Default | Description |
|------|---------|-------------|
| -w, --width | 10 | Width of output image in pixels |
| -h, --help | | Show help |
HTML
<video
src="video.mp4"
poster="data:image/png;base64,..."
style="object-fit: cover;"
>
</video>Agent Skill
Install the skill so Claude Code automatically generates blur posters when inserting <video> elements:
npx skills add joshuabaker/video-poster-blur