Skip to content

feat: add Pillarbox Blur background option for Fit mode#788

Open
Kritika200520 wants to merge 4 commits into
magic-peach:mainfrom
Kritika200520:feature/pillarbox-blur
Open

feat: add Pillarbox Blur background option for Fit mode#788
Kritika200520 wants to merge 4 commits into
magic-peach:mainfrom
Kritika200520:feature/pillarbox-blur

Conversation

@Kritika200520
Copy link
Copy Markdown

@Kritika200520 Kritika200520 commented May 20, 2026

Description

This PR adds a Pillarbox Blur background option when resizing videos using the Fit (letterbox/pillarbox) mode. Instead of showing solid black bars in the empty letterbox space, users can now toggle a scaled-up, blurred version of the video playing in the background.

Key changes:

  • Extended EditRecipe to support blurBackground state.
  • Added a dynamic Pillarbox Blur toggle checkbox in the FramingControl component under Fit mode.
  • Built a complex FFmpeg filter graph in buildVideoFilter using split, scale, crop, boxblur, and overlay to overlay the source video on top of a blurred background.
  • Added unit tests in src/lib/tests/ffmpeg.test.ts to verify the generated filter strings for letterbox, blurred background, and crop scenarios.

Related Issue

Closes # [685]

Type of Contribution

  • Bug fix
  • New feature
  • Documentation update
  • GSSoC contribution

Participant Info

  • GitHub username: Kritika200520
  • Contribution level (Beginner/Intermediate/Advanced): Intermediate

Checklist

  • I have read the contribution guidelines
  • My changes follow the project structure
  • I have tested my changes in Chrome, Firefox, and Safari
  • bun run lint passes (no ESLint errors)
  • bunx tsc --noEmit passes (no TypeScript errors)
  • New interactive elements have aria-label / accessible names
  • No console.log statements left in
  • This PR is related to a valid issue

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

@Kritika200520 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @Kritika200520!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

🟠 GSSoC'26 PR detected — thanks for contributing under GirlScript Summer of Code 2026!

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

✅ PR Format Check Passed — @Kritika200520

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

@github-actions github-actions Bot added gssoc'26 GirlScript Summer of Code 2026 level:intermediate Intermediate level - 35 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature type:testing Testing labels May 20, 2026
@Kritika200520 Kritika200520 changed the title Feature/pillarbox blur feat: add Pillarbox Blur background option for Fit mode May 20, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
reframe Error Error May 20, 2026 2:34pm

@magic-peach
Copy link
Copy Markdown
Owner

@Kritika200520 the build is failing please fix it

@Kritika200520
Copy link
Copy Markdown
Author

@magic-peach i did some changes please review it again

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

Labels

gssoc'26 GirlScript Summer of Code 2026 level:intermediate Intermediate level - 35 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature type:testing Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants