X-Git-Url: https://git.ucc.asn.au/?p=dja%2Fscandal.git;a=blobdiff_plain;f=scan2pages.sh;h=5cacfe6fb32aca17a0e9b7a9def788aacbf02104;hp=b129963b7effba28a49baac6f935be08c7102e9b;hb=3ae3547c36bf50dd98a9a8aaaf84b7eeaf7b9fe9;hpb=13a56d0f2178dd64270ae0b9d6e2994de42e9c07 diff --git a/scan2pages.sh b/scan2pages.sh index b129963..5cacfe6 100755 --- a/scan2pages.sh +++ b/scan2pages.sh @@ -162,8 +162,6 @@ for pg in `$my_seq 1 $pages`; do # 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) - # ... not sure why such a convoluted form is required. expr doesn't like - # processing a convert -format "%w * %h" or any variant thereof 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;