From 53f2b01b54429e570e6392b84885913b27fc3176 Mon Sep 17 00:00:00 2001 From: Robert Johnson Date: Wed, 30 Aug 2023 22:43:42 -0400 Subject: [PATCH] more calculations. --- cut_counters.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cut_counters.sh b/cut_counters.sh index d417829..95f2f3e 100755 --- a/cut_counters.sh +++ b/cut_counters.sh @@ -8,3 +8,9 @@ height=`identify -ping -format '%h' $1` no_v_slices=$2 no_h_slices=$3 file_prefix=$4 + +vert_size=`echo "$height/($no_h_slices+1)" | bc -l` +hort_size=`echo "$width/($no_v_slices+1)" | bc -l` + +echo $vert_size +echo $hort_size \ No newline at end of file