13 lines
425 B
Bash
Executable File
13 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# convert a full frame to one that's cropped to only the interesting part and scaled to 256 pixels
|
|
# wide. the "throbber" images are played in a loop by plymouth.
|
|
|
|
# ex. frames/0001.png -> blåhaj/throbber-0001.png
|
|
in="$1"
|
|
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"
|