🌐 Frontend & Web

1970s Film Hack Rescues Playwright's Botched Transparent Videos

You've slaved over HTML/CSS graphics in Playwright, exported transparent PNGs, stitched to video — only for glows and shadows to blob out in Premiere. One dev dusted off 1970s film math to fix it for good.

Before-and-after comparison of broken purple shadow blob vs crisp glow halo in CapCut timeline

⚡ Key Takeaways

  • Playwright's omitBackground mangles low-alpha pixels due to premultiplied-to-straight conversion losses. 𝕏
  • Render on black/white backgrounds and use Porter-Duff math for exact RGBA extraction — no browser alpha needed. 𝕏
  • This 1970s VFX hack delivers pro video overlays; expect it to spawn npm libs soon. 𝕏
Published by

theAIcatchup

Ship faster. Build smarter.

Worth sharing?

Get the best Developer Tools stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from theAIcatchup, delivered once a week.