if ! command -v magick > /dev/null; then magick() { for i in \ convert identify mogrify composite montage \ compare stream display animate import conjure do if test "$1" = "$i"; then "$@" return fi done convert "$@"; }; fi