Skip to content

Commit cc5f412

Browse files
committed
Fix bug
1 parent bcb8d5b commit cc5f412

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

thumbnail/ffmpeg_binary.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ export async function fb_generate_thumbnail(
101101
`${cfg.quality}`,
102102
"-qmax",
103103
`${cfg.quality}`,
104-
o,
104+
"-f",
105+
"image2",
105106
];
107+
if (fmt == ThumbnailFormat.WEBP) {
108+
args.push("-quality", "100");
109+
}
110+
args.push(o);
106111
const cmd = new Deno.Command(p, { args, stdout: "null", stderr: "piped" });
107112
const c = cmd.spawn();
108113
const s = await c.output();

0 commit comments

Comments
 (0)