🎥 Make videos programmatically with React
Update docs about scaling
JonnyBurgerac94e13cebf3
diff --git a/packages/docs/docs/scaling.mdx b/packages/docs/docs/scaling.mdxindex a3a9db68c9..0180d52442 100644--- a/packages/docs/docs/scaling.mdx+++ b/packages/docs/docs/scaling.mdx@@ -2,7 +2,7 @@image: /generated/articles-docs-scaling.pngid: scalingtitle: Output scaling-crumb: "How To"+crumb: 'How To'---_Available from v2.6.7._@@ -22,7 +22,7 @@ Remotion can support this higher resolution by setting the [`deviceScaleFactor`]- In the [config file](/docs/config), you can pass the scale using the following statement:```ts twoslash- import { Config } from "@remotion/cli/config";+ import {Config} from '@remotion/cli/config';// ---cut---Config.setScale(2);```@@ -33,11 +33,12 @@ The highest scale possible is `16` (sixteen times higher dimensions on each sizePositive values below 1 are allowed. For example, `0.5` will half each dimension.-The scale must result in a value that will result in integer pixels. A value of `1.00000001` for a composition with a width of `1920` pixels is not allowed.+Before 4.0.328, there were further limitations:-For MP4 videos, the scale must resolve in a value where both dimensions are divisible by 2, since the codec does not support odd numbers.+- Scaling values leading to non-integer pixels were not allowed.+- Scaling values leading to non-even numbers were not allowed when rendering with codec `h264`.-If you would like to downscale a composition from `1920` to `1280` pixels, pass a scale of `2/3` to avoid rounding errors. This does not currently work as a CLI flag.+Since 4.0.328, rounding is performed automatically.## Scalable elements