Исправление
sdio,
(текущая версия)
:
!#/bin/sh
# check input parameters before continue (not included here)
IMGFILE="$1"
# get height and width from the picture
eval `identify -format "width=%W; height=%H" "$IMGFILE"`
# debug output
echo "width = $width"
echo "height = $height"
Исходная версия
sdio,
:
!#/bin/sh
# check input parameters before continue (not included here)
IMGFILE="$1"
# get height and width from the picture
eval `identify -format "width=%W; height=%H"` "$IMGFILE"
# debug output
echo "width = $width"
echo "height = $height"