From cec7de5c31ff4daf794ea158e93ed9faed6fde39 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 15 May 2024 18:58:52 +0200 Subject: [PATCH] chore(snippets/format-conversion): add webp to png --- snippets/convert-between-formats.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/convert-between-formats.sh b/snippets/convert-between-formats.sh index 46338a3..de69968 100644 --- a/snippets/convert-between-formats.sh +++ b/snippets/convert-between-formats.sh @@ -10,3 +10,7 @@ ffmpeg -y -i 'rec.webm' -i 'palette.png' -filter_complex 'paletteuse' -r 10 'out # webm to mp4 ffmpeg -i 'input.webm' -c 'copy' 'output.mp4' ffmpeg -fflags '+genpts' -r '24' -i 'input.webm' 'output.mp4' + +# webp to png +dwebp 'input.webp' -o 'output.png' +dwebp 'input.webp' -mt -o 'output.png' -resize '192' '192'