mirror of
https://github.com/rocky-linux/rocky-logos.git
synced 2024-12-27 04:00:55 +00:00
12 lines
189 B
Bash
Executable file
12 lines
189 B
Bash
Executable file
#!/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
|