From 66acdc91221cecb8bd3c00787ab0ec71402a1621 Mon Sep 17 00:00:00 2001 From: yo mama Date: Tue, 23 Aug 2016 15:03:36 -0700 Subject: fixed grid script --- bin/grid | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/grid b/bin/grid index 58d0e08..848e3bf 100755 --- a/bin/grid +++ b/bin/grid @@ -237,5 +237,10 @@ if [ $xinc -le $width ] fi # process image -convert $tmpA -fill none -stroke $color -strokewidth $thickness -draw "stroke-opacity $opacity path '$drawstr'" $outfile +opacity_setting="stroke-opacity $opacity" +if [ "$opacity" -eq 1 ]; then + opacity_setting=""; + +fi +convert $tmpA -fill none -stroke $color -strokewidth $thickness -draw "$opacity_setting path '$drawstr'" $outfile exit 0 -- cgit v1.2.3-70-g09d2