Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Oct 24, 2024
1 parent bcb8d5b commit cc5f412
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion thumbnail/ffmpeg_binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,13 @@ export async function fb_generate_thumbnail(
`${cfg.quality}`,
"-qmax",
`${cfg.quality}`,
o,
"-f",
"image2",
];
if (fmt == ThumbnailFormat.WEBP) {
args.push("-quality", "100");
}
args.push(o);
const cmd = new Deno.Command(p, { args, stdout: "null", stderr: "piped" });
const c = cmd.spawn();
const s = await c.output();
Expand Down

0 comments on commit cc5f412

Please sign in to comment.