The following command produces an invalid dasharray:
Code: Select all
convert -size 100x100 xc:white -stroke black -fill none +antialias -draw "stroke-dasharray 40,10 path 'M 10,10 30,10 30,70 10,70 10,10'" test.png
![Image](http://dev.noromaa.fi/dasharray_40_10.png)
The first dash is OK (20 pixels at top and 20 pixels at right), but the second dash is 30+20+30 = 80 pixels long. After that there is a 20-pixel wide empty space.
The empty space becomes really annoying when I use very short spaces:
Code: Select all
convert -size 100x100 xc:white -stroke black -fill none +antialias -draw "stroke-dasharray 40,2 path 'M 10,10 30,10 30,70 10,70 10,10'" test.png
![Image](http://dev.noromaa.fi/dasharray_40_2.png)
This makes the result look nothing like a rectangle.
I am using ImageMagick 6.7.7-0 2012-05-17 Q16 on Windows.