🎥 Make videos programmatically with React
warn if rendering transparent video but not rendering in png
Jonny Burger94b7ae1d9574
diff --git a/packages/core/src/config/image-format.ts b/packages/core/src/config/image-format.tsindex 659b11a556..6d6af95617 100644--- a/packages/core/src/config/image-format.ts+++ b/packages/core/src/config/image-format.ts@@ -38,13 +38,13 @@ export const validateSelectedPixelFormatAndImageFormatCombination = ();}- if (pixelFormat !== 'yuva420p') {+ if (pixelFormat !== 'yuva420p' && pixelFormat !== 'yuva444p10le') {return 'valid';}if (imageFormat !== 'png') {throw new TypeError(- "Pixel format was set to 'yuva420p' but the image format is not PNG. To render transparent videos, you need to set PNG as the image format."+ `Pixel format was set to '${pixelFormat}' but the image format is not PNG. To render transparent videos, you need to set PNG as the image format.`);}