-for imageext in $IMAGEEXTENSIONS; do
- if ( ls "*.$imageext" > /dev/null 2>/dev/null ); then
- TEMPMAX=$($IDENTIFYCOMMAND *.$imageext | grep "Geometry:" | sed -r 's#^.*Geometry:.*?[0-9]+x([0-9]+)\+.*$#\1#' | $SORTCOMMAND -g -r | $HEADCOMMAND -n 1)
- if [[ $TEMPMAX -gt $MAXHEIGHT ]]; then
- MAXHEIGHT=$TEMPMAX
- fi
- fi
-done