mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 09:35:37 +00:00
30 lines
555 B
Bash
Executable File
30 lines
555 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Script to convert PNGs from indexed to RGB mode.
|
|
#
|
|
# Run-time requirements: ImageMagick
|
|
#
|
|
|
|
while [ "${1}" != "" ]; do
|
|
# Rather useless until we start accepting options, but whatever.
|
|
filelist="${filelist} ${1}"
|
|
shift
|
|
done
|
|
|
|
if test -z "$filelist"; then
|
|
filelist=`find -iname "*.png"`
|
|
fi
|
|
|
|
number=`echo $filelist|wc -w`
|
|
|
|
echo "Converting $number files to RGB mode..."
|
|
|
|
for f in $filelist
|
|
do
|
|
convert -define png:color-type=TrueColor $f $f.new
|
|
mv -f $f.new $f
|
|
done
|
|
|
|
echo "Done. Now would be a good time to run optipng"
|
|
|