🎥 Make videos programmatically with React
throw error when clip region as it needs more deeper thought to make it work with pdf
benno12f7e88f91b6
diff --git a/packages/renderer/src/take-frame-and-compose.ts b/packages/renderer/src/take-frame-and-compose.tsindex c5da983b02..d05b8cbb76 100644--- a/packages/renderer/src/take-frame-and-compose.ts+++ b/packages/renderer/src/take-frame-and-compose.ts@@ -59,8 +59,14 @@ export const takeFrameAndCompose = async ({return {buffer: null, collectedAssets};}+ if (imageFormat === 'pdf' && clipRegion !== null) {+ throw new Error(+ "You can only pass a `clip region` if `imageFormat` is 'jpeg' or 'png'."+ );+ }+const needsComposing =- clipRegion === null || imageFormat === 'pdf' // TODO figure out what composing does+ clipRegion === null? null: {tmpFile: path.join(