image_size={$X_SIZE}
- if [ ${image_size} -lt ${Y_SIZE} ] ; then \
- image_size=${Y_SIZE}
+ if [ ${image_size} -lt {$Y_SIZE} ] ; then \
+ image_size={$Y_SIZE}
fi
sampling_length=$(echo "scale=15.7; ${length} * {$SHRINK} * ${ref_size} / ${image_size}" | bc)