Problems with svg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Problems with svg

Post by tsdineen »

I just downloaded the latest ImageMagick code (6.3.5) to build on Linux RHEL4. I have two issues, one regression from 6.3.3 and one continued failure, when viewing a svg format. The svg should create a green rectangle box with a black border and a title rotated along the right edge. This file views correctly with a windows viewer, but on Linux I have two problems.

1> Adding the rotate causes the title to not display.
2> Using path to create the border causes the entire rectangle to be black. This was working correctly in 6.3.3.

Below is the sample file to view these problems using display.

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 800 600">

<g id="Page1">
<rect x="192" y="96" width="384" height="480" style="fill: #008000; stroke: #008000; fill-rule: evenodd; "/>

<!-- With path the rectangle becomes black.
<path d="M192 96L575 96L575 575L192 575L192 96" style="stroke: #000000; stroke-width: 1; fill: none; "/>
 -->
	
<!-- With transform text doesn't print -->
<g transform="rotate(-270 553 225)">
<text x="553" y="225" style="stroke: #000000; fill: #000000; font-family: 'Arial Font2'; font-size: 23px; font-weight: bold;">hsize=4in vsize=5in</text>
</g>

</g>

</svg>
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems with svg

Post by magick »

We have a fix for the problems you reported. Look for a patch in ImageMagick 6.3.5-1 Beta within 48 hours.
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: Problems with svg

Post by tsdineen »

Thank you, for your hard work. IM 6.3.5-1 does fix my two problems, but it does reintroduce the rotate problem stated here:
http://redux.imagemagick.org/discourse- ... f=1&t=8592
Post Reply