#!/usr/bin/env sh
#
# dependencies: scanimage (sane-backends)

if ! command -v scanimage >/dev/null 2>&1; then
  printf '%s\n' "${0##*/}: scanimage not found in PATH!" >&2
  exit 1
fi

scanimage --progress --format=jpeg --mode=Color --resolution=300 "$@"
