diff --git a/packages/engine/src/utils/ffprobe.test.ts b/packages/engine/src/utils/ffprobe.test.ts index ca3b8870a..0c8fb671a 100644 --- a/packages/engine/src/utils/ffprobe.test.ts +++ b/packages/engine/src/utils/ffprobe.test.ts @@ -225,6 +225,46 @@ describe("ffprobe missing-binary fallback", () => { expect(meta.hasAlpha).toBe(true); }); + // Regression: newer libavformat builds (and the output of `hyperframes + // remove-background` itself) write the VP9-alpha sidecar tag as + // `ALPHA_MODE` (uppercase). The lowercase-only check classified those + // files as having no alpha, the producer extracted them as JPGs, and + // the injected overlays were fully opaque rectangles that hid + // every static element below them on the z-stack. The bug was silent — + // studio preview rendered correctly via native