dither4/video-rickroll/video.sh

16 lines
279 B
Bash
Raw Normal View History

2024-08-31 02:34:55 +00:00
set -e
2024-08-31 16:30:10 +00:00
for frame in frames/rickroll-[0-9][0-9][0-9][0-9][0-9].png
2024-08-31 02:34:55 +00:00
do
n="${frame#frames/rickroll-}"
n="${n%.png}"
out="frames/dither-${n}"
last="${n:0-1}"
node ../dither-image.js "$frame" "$out" &
if (( last == 9 ))
then
wait
fi
done
wait