You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ $# -eq 0 ] ; then echo "\n\t Missing expected parameter providing name of '*.png' file to convert to 4-bit (16 colour) file.\n Bye!\n" ; exit 1 ; fi
for file in $*
do
INPUT="${file}"
if [-s "${file}"]
then
DIR=`dirname "${INPUT}" `
NEW=${DIR}/`basename "${INPUT}" ".png" `_16.png
case "${INPUT}" in
*.png ) ;;
* ) echo "\n\t This utility intended to convert '*.png' file to 4-bit (16 colour) file.\n Bye!\n" ; exit 1 ;;