🎥 Make videos programmatically with React
scale
Jonny Burgerac8f082dfaec
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex 9a7173183d..68b5d5888e 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -132,6 +132,12 @@ _available for `still`, `render` commands_[Path to a Chrome executable](/docs/config#setbrowserexecutable). If not specified and Remotion cannot find one, it will download one during rendering. Available since v1.5.+### `--scale`++_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`.+### `--frames`_available for `render` command_diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 898ab6e61f..9bae8be15a 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -216,6 +216,20 @@ Config.Rendering.setImageFormat("png");The [command line flag](/docs/cli#--image-format) `--image-format` will take precedence over this option.+### setScale()++_Available from Version 2.6.7._++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`.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Rendering.setScale(2);+```++The [command line flag](/docs/cli#--scale) `--scale` will take precedence over this option.+### setFrameRange()_Available from Version 2.0._diff --git a/packages/docs/docs/render-frames.md b/packages/docs/docs/render-frames.mdindex 5980c2d348..759a09ff2b 100644--- a/packages/docs/docs/render-frames.md+++ b/packages/docs/docs/render-frames.md@@ -98,7 +98,7 @@ A `number` specifying how many frames should be rendered in parallel or `null` t_number - default: 1 - available from v2.6.7_-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 `2`. Vector elements like fonts and HTML markups will be rendered with extra details.+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.### `quality?`diff --git a/packages/docs/docs/render-still.md b/packages/docs/docs/render-still.mdindex 3970b73f08..3bdb17f484 100644--- a/packages/docs/docs/render-still.md+++ b/packages/docs/docs/render-still.md@@ -91,7 +91,7 @@ Which output format the image should have, either `png` or `jpeg`._number - default: 1 - available from v2.6.7_-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 `2`. Vector elements like fonts and HTML markups will be rendered with extra details.+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.### `quality?`