stroke-dasharray misbehaviour with long strokes
Posted: 2012-05-25T07:46:03-07:00
Hello!
The following command produces an invalid dasharray:
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:
This makes the result look nothing like a rectangle.
I am using ImageMagick 6.7.7-0 2012-05-17 Q16 on Windows.
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
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
This makes the result look nothing like a rectangle.
I am using ImageMagick 6.7.7-0 2012-05-17 Q16 on Windows.