publish fork

This commit is contained in:
Dark Steveneq
2025-12-18 08:57:01 +01:00
parent ca3eebda7e
commit 3c0b3009c6
313 changed files with 18 additions and 15 deletions

View File

@@ -5,7 +5,8 @@
# ex. frames/0001.png -> blåhaj/throbber-0001.png
in="$1"
out=blåhaj/throbber-$(basename "$in")
ffmpeg -loglevel quiet -i "$in" -vf crop=806:529:1517:716,scale=256:-1 -y "$out"
out=shelby/throbber-$(basename "$in")
# ffmpeg -loglevel quiet -i "$in" -vf scale=256:-1 -y "$out"
cp "$in" "$out"
# optional, makes output files a bit smaller
optipng -o7 -silent "$out"
# optipng -o7 -silent "$out"

View File

@@ -10,7 +10,7 @@ import sys
digits = re.compile(r'\d+')
# like blåhaj/throbber-0001.png
# like shelby/throbber-0001.png
filename = sys.argv[1]
num = int(digits.search(filename).group())
# fades from 1.0 to 1/60 over the animation

View File

@@ -1,4 +1,4 @@
#!/bin/bash
# run fade-one.py on every throbber image in parallel
find blåhaj -type f -name 'throbber-*.png' | parallel --bar --jobs $(nproc) ./scripts/fade-one.py
find shelby -type f -name 'throbber-*.png' | parallel --bar --jobs $(nproc) ./scripts/fade-one.py