🎥 Make videos programmatically with React
Mentioning default imageFormat for renderFrames()
Patric Salvisbergff95d3b06958
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.mdindex 2c9ab0984f..5696ca1789 100644--- a/packages/docs/docs/4-0-migration.md+++ b/packages/docs/docs/4-0-migration.md@@ -149,3 +149,7 @@ If this happens now and the error is not handled, the render will be aborted and## `crf` is not allowed for GIFs anymorePreviously you were able to set a value for `crf` when rendering a GIF. This was a mistake and GIF does not support them.++## Default image format for `renderFrames()`++When nothing is specified, `renderFrames()` now takes `jpeg` as default image format.diff --git a/packages/docs/docs/renderer/render-frames.md b/packages/docs/docs/renderer/render-frames.mdindex dc1a7f7c1a..e9fa18b7fe 100644--- a/packages/docs/docs/renderer/render-frames.md+++ b/packages/docs/docs/renderer/render-frames.md@@ -77,11 +77,11 @@ Either a Webpack bundle or a URL pointing to a bundled Remotion project. Call [`### `imageFormat`-A `string` which must be either `png`, `jpeg` or `none`.+_optional_++Is `jpeg` per default, as its faster than `png`.-- Choose `jpeg` by default because it is the fastest.-- Choose `png` if you want your image sequence to have an alpha channel (for transparency).-- Choose `none` if you only want to render audio.+Choose `png` if you want your image sequence to have an alpha channel (for transparency).### `concurrency?`diff --git a/packages/renderer/src/render-frames.ts b/packages/renderer/src/render-frames.tsindex e866c6e93a..b4c62dfc8b 100644--- a/packages/renderer/src/render-frames.ts+++ b/packages/renderer/src/render-frames.ts@@ -59,7 +59,7 @@ type RenderFramesOptions = {outputDir: string | null;inputProps: unknown;envVariables?: Record<string, string>;- imageFormat: VideoImageFormat;+ imageFormat?: VideoImageFormat;/*** @deprecated Renamed to "jpegQuality"*/