1 2 3 4 5 6 7 8 9
#!/bin/sh set -xe [ ! -f "${1}" ] [ -f "${2}" ] [ -n "${3}" ] convert "${2}" -dither Riemersma -colors 16 "${3}"