Skip to content

🎥 Make videos programmatically with React

last type errors resolved

Patric Salvisberga0721a6a189b
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.ts
index 4942ef8e79..4c95105ed7 100644
--- a/packages/lambda/src/cli/commands/still.ts
+++ b/packages/lambda/src/cli/commands/still.ts
@@ -1,4 +1,5 @@
import {CliInternals} from '@remotion/cli';
+import {ConfigInternals} from '@remotion/cli/config';
import {getCompositions, RenderInternals} from '@remotion/renderer';
import {downloadMedia} from '../../api/download-media';
import {renderStillOnLambda} from '../../api/render-still-on-lambda';
@@ -58,7 +59,6 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {
scale,
height,
width,
- configFileImageFormat,
} = await CliInternals.getCliOptions({
type: 'still',
isLambda: true,
@@ -77,10 +77,11 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {
CliInternals.determineFinalStillImageFormat({
downloadName,
outName: outName ?? null,
- configImageFormat: configFileImageFormat ?? null,
cliFlag: CliInternals.parsedCli['image-format'] ?? null,
isLambda: true,
fromUi: null,
+ configImageFormat:
+ ConfigInternals.getUserPreferredStillImageFormat() ?? null,
});
try {