Skip to content

🎥 Make videos programmatically with React

Update still.ts

Jonny Burger35207c8b265a
diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.ts
index 563e832716..7fa6780ca4 100644
--- a/packages/cli/src/still.ts
+++ b/packages/cli/src/still.ts
@@ -33,6 +33,13 @@ export const still = async () => {
Config.Rendering.setImageFormat('jpeg');
}
+ if (userOutput.endsWith('.png')) {
+ Log.verbose(
+ 'Output file has a PNG extension, therefore setting the image format to PNG.'
+ );
+ Config.Rendering.setImageFormat('png');
+ }
+
const {
inputProps,
envVariables,