rocky-logos/anaconda/splashtolss.sh

13 lines
189 B
Bash
Raw Permalink Normal View History

2020-12-28 22:52:28 +00:00
#!/bin/sh
usage() {
echo "Usage: $0 <source> <output>"
exit 1
}
if [ -z "$1" -o -z "$2" ]; then
usage
fi
pngtopnm $1 | ppmtolss16 \#cdcfd5=7 \#ffffff=1 \#000000=0 \#c90000=15 > $2