- $FINDCOMMAND . $FINDIMAGESOPTIONS | $XARGSCOMMAND -0 -I {} $ECHOCOMMAND {} | while read filename; do tempfilename=${filename//\"/\\\"/}; if [ ! -r "$2/$tempfilename" ] || [ "$tempfilename" -nt "$2/$tempfilename" ] || [ $($IDENTIFYCOMMAND -format "%w" "$2/$filename") -ne $1 ]; then $ECHOCOMMAND -n $filename; $ECHOCOMMAND -n -e "\000"; fi; done | $XARGSCOMMAND -0 --verbose --max-procs=4 -I {} $CONVERTTOOL -resize $1 '{}' $2/'{}' 2>&1 | while read throwout; do $ECHOCOMMAND done: $currentimage/$imagestoupdate images; currentimage=$((currentimage+1)); done
+ $FINDCOMMAND . $FINDIMAGESOPTIONS | \
+ $XARGSCOMMAND -0 -I {} $ECHOCOMMAND {} | \
+ while read filename; do
+ tempfilename=${filename//\"/\\\"/};
+ imagesizeright=$(check_dimensions "$width" "$height" "$2" "$filename")
+ if [ ! -r "$2/$tempfilename" ] \
+ || [ "$tempfilename" -nt "$2/$tempfilename" ] \
+ || [ $imagesizeright -ne 1 ]; then
+ $ECHOCOMMAND -n $filename
+ $ECHOCOMMAND -n -e "\000"
+ fi
+ done | \
+ $XARGSCOMMAND -0 --verbose --max-procs=$MAXTHREADS -I {} $CONVERTTOOL -resize $1 '{}' $2/'{}' 2>&1 | \
+ while read throwout; do
+ $ECHOCOMMAND done: $currentimage/$imagestoupdate images
+ currentimage=$((currentimage+1))
+ done