annotate mrjunejune/src/public/test.sh @ 169:295ac2e5ec00
[MrJuneJune] Created separate target for generating html from md.
| author |
MrJuneJune <me@mrjunejune.com> |
| date |
Mon, 19 Jan 2026 17:33:18 -0800 |
| parents |
19cccf6e866a |
| children |
|
| rev |
line source |
|
91
|
1 i=1; for f in *; do \
|
|
|
2 # Create the original resolution version
|
|
|
3 ffmpeg -i "$f" -vcodec libwebp -q:v 75 "webp/${i}_original.webp"; \
|
|
|
4 # Create the 400x400 version (maintaining aspect ratio)
|
|
|
5 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"; \
|
|
|
6 i=$((i+1)); \
|
|
|
7 done
|