Mercurial
view mrjunejune/src/public/test.sh @ 154:bdcc610eeed8
[Markdown Converter][GuiZe] Added markdown coverter in C and wasm rule sets. Needs further view on this as I haven't taken a look. Written by Claude.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Mon, 12 Jan 2026 09:11:58 -0800 |
| parents | 19cccf6e866a |
| children |
line wrap: on
line source
i=1; for f in *; do \ # Create the original resolution version ffmpeg -i "$f" -vcodec libwebp -q:v 75 "webp/${i}_original.webp"; \ # Create the 400x400 version (maintaining aspect ratio) ffmpeg -i "$f" -vcodec libwebp -vf "scale=400:400:force_original_aspect_ratio=decrease,pad=400:400:(ow-iw)/2:(oh-ih)/2:color=black" -q:v 75 "webp/${i}.webp"; \ i=$((i+1)); \ done