@remotion/renderer: Fix transparent background for WebP renderStill() output#6913
Merged
JonnyBurger merged 2 commits intomainfrom Mar 26, 2026
Merged
@remotion/renderer: Fix transparent background for WebP renderStill() output#6913JonnyBurger merged 2 commits intomainfrom
@remotion/renderer: Fix transparent background for WebP renderStill() output#6913JonnyBurger merged 2 commits intomainfrom
Conversation
Co-authored-by: JonnyBurger <1629785+JonnyBurger@users.noreply.github.com> Agent-Logs-Url: https://github.com/remotion-dev/remotion/sessions/fe072e07-f3df-48cc-ac3b-63617afc7195
Copilot
AI
changed the title
[WIP] Fix background issue in renderStill() for webp images
Mar 26, 2026
@remotion/renderer: Fix transparent background for WebP renderStill() output
Contributor
|
Reviewed PR #6913 — approved. The fix correctly extends the Task list (5/5 completed)
![]() |
Contributor
There was a problem hiding this comment.
Correct fix. The transparent document.body.style.background was already applied for webp (line 32-34), but the omitBackground CDP flag was not — so Chrome still composited a white background before capture. This one-line change closes the gap. No other callsites need updating.
Big Pickle (free) | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

omitBackgroundwas hardcoded tofalsefor WebP, causing Puppeteer to never sendEmulation.setDefaultBackgroundColorOverrideto CDP — resulting in a solid white background instead of transparency.Changes
packages/renderer/src/take-frame.ts: ExtendomitBackgroundcondition to include'webp'alongside'png'Original prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.