If you save as JPEG then the colors will never be exact!
Also anti-aliasing pixels may produce mixed colors.
I can't really tell as when I try the above example on a test image I don't see a useful result. Your stroke-width may be too small.
When I adjusted I noticed you draw yellow then overlay it completely with blue!
so no yellow appears in the output...
Code: Select all
convert logo: -stroke yellow -strokewidth 3 -draw "stroke-dasharray 5 3 stroke-dashoffset 7.5 rectangle 12.5,12.5 362.5,212.5" -stroke blue -draw "stroke-dasharray 5 3 stroke-dashoffset 7.5 rectangle 12.5,12.5 362.5,212.5" show:
On the other hand.....
Code: Select all
convert logo: -stroke yellow -strokewidth 3 -draw "rectangle 12.5,12.5 362.5,212.5" -stroke blue -draw "stroke-dasharray 5 3 stroke-dashoffset 7.5 rectangle 12.5,12.5 362.5,212.5" show:
should have draw a yellow border, then overlaied a blue dashes, and it didn't.
And that is a bug!!!!