summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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