I use ImageMagick-6.9.3-7-vc14-x86 (php_imagick-3.4.3-7.1-ts-vc14-x86). My task is to create SVG and to convert it to PNG. Some of my objects have hatch. It is rendered correctly in Inkscape but in PNG it is not present. Hatch lines are black and if I set not black but even #000001 hatch appears. How to make it work with black?
Here is simple example
Code: Select all
<svg width="34" height="37" stroke="#000000" stroke-width="1px" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g id="bcsGroup" transform="translate(-38,-172)">
<g transform="translate(55,181)" stroke="#000" data-n="1" data-t="c">
<line y2="17"/>
<circle r="3.5" fill="#fff"/>
<line x1="-12" x2="12" y1="17" y2="17"/>
<defs>
<pattern id="oneDCGround1" x="-4" width="6" height="6" patternUnits="userSpaceOnUse">
<line x2="6" y1="6"/>
</pattern>
</defs>
<rect x="-12" y="17" width="24" height="6" fill="url(#oneDCGround1)" stroke="none"/>
<circle cy="17" r="3.5" fill="#fff"/>
</g>
</g>
</svg>