Page 1 of 1
Stroke primitive in MVG file ignored by convert
Posted: 2008-07-05T12:33:25-07:00
by rmagick
This is Version: ImageMagick 6.4.1 05/12/08 Q8. The following MVG file and convert command:
Code: Select all
push defs
push pattern xxxxx 0 0 16 16
push graphic-context
stroke "none"
fill "DarkBlue"
rectangle 0,0 16,16
fill "yellow"
stroke "red"
polygon 0,0,8,16,16,0,0,0
pop graphic-context
pop pattern
pop defs
fill "xxxxx"
stroke "blue"
stroke-width 5
path 'M50,50 Q-30,100 50,150 100,230 150,150 230,100 150,50 100,-30 50,50'
Code: Select all
convert -size 300x300 pattern.mvg test.jpg
produces the image below. I expect to see a 5-pixel wide blue stroke around the diamond shape. I think this is a bug but please tell me if I've miscoded the MVG primitives. Thanks!
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-05T13:47:02-07:00
by fmw42
I am no expert on using MVG in this way, but what is fill "xxxxx"? Does it not need a color?
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-05T13:52:35-07:00
by rmagick
"xxxxx" is the name of the pattern to be used as a fill. Notice that the pattern definition precedes its actual use.
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-09T19:27:01-07:00
by anthony
Have you tryed this without a pattern... Does that work?
EG can you simplify the problem, or does the problem only exist when you use a MVG pattern.
From what I can see it should have a blue stroke around the pattern, But then I have not used MVG with SVG like internally defined patterns.
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-10T04:15:15-07:00
by rmagick
Without a pattern it works fine. However, the bug report I got says that the reverse situation, with a pattern stroke and solid fill, also fails.
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-14T16:23:52-07:00
by rmagick
I don't want this report to get lost in the shuffle, so I tried reversing the stroke and fill so that the stroke pattern is "xxxxx" and the fill is "blue". This works. Also the simple case that uses no patterns at all, just solid colors, works correctly. So apparently the only test that fails is the one I submitted to begin with: when the fill is a pattern and the stroke is a solid color.
I tested with 6.4.2-1.
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-15T06:05:20-07:00
by magick
We have added this bug to our list and will investigate. We currently do not have an ETA on a fix. Stand by...
Re: Stroke primitive in MVG file ignored by convert
Posted: 2008-07-15T14:41:11-07:00
by rmagick
Thanks! I appreciate your efforts.