summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2016-08-23 15:03:36 -0700
committeryo mama <pepper@scannerjammer.com>2016-08-23 15:03:36 -0700
commit66acdc91221cecb8bd3c00787ab0ec71402a1621 (patch)
treeb7ba932c4eb3ba4a55ff80b3142eb52763d3871c /bin
parent944e5c21adecd2b57af76d76854f4acfabf74402 (diff)
fixed grid script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/grid7
1 files changed, 6 insertions, 1 deletions
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