🎥 Make videos programmatically with React
update scale range
Shankhadeep Dey5951b8926828
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex 68b5d5888e..49e0885ef2 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -136,7 +136,7 @@ _available for `still`, `render` commands__available for `render` and `still` command._-Scales the output frames by the factor you pass in. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details. Default: `1`.+Scales the output frames by the factor you pass in. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details. `scale` must be between 1 to 16. Default: `1`.### `--frames`diff --git a/packages/renderer/src/validate-scale.ts b/packages/renderer/src/validate-scale.tsindex ad15b29e58..31fb6a96cf 100644--- a/packages/renderer/src/validate-scale.ts+++ b/packages/renderer/src/validate-scale.ts@@ -19,7 +19,7 @@ export const validateScale = (scale: unknown) => {throw new Error(`"scale" must be finite, but is ${scale}`);}- if (scale <= 0) {- throw new Error(`"scale" must be bigger than 0, but is ${scale}`);+ if (scale <= 0 || scale > 16) {+ throw new Error(`"scale" must be between 1 to 16 , but is ${scale}`);}};