# check it hasn't mostly disappeared - e.g. if the scan was all black
# (e.g. forgot to put the book down when you first hit scan)
# check it hasn't mostly disappeared - e.g. if the scan was all black
# (e.g. forgot to put the book down when you first hit scan)
if [[ $(convert $preppnm -format '%[fx:s.w*s.h>1000]' info:) = "0" ]]; then
[[ $verbose == 1 ]] && echo "Discarding pg ${pgn}: not enough remains after masking."
continue;
if [[ $(convert $preppnm -format '%[fx:s.w*s.h>1000]' info:) = "0" ]]; then
[[ $verbose == 1 ]] && echo "Discarding pg ${pgn}: not enough remains after masking."
continue;