Hi,
I just made the attached svg graphics with inkscape 0.42.2 and rendered it with librsvg 2.9.5 with the command
rsvg --width 160 eumel.svg eumel.png
Both files are attached.
Problem 1: The 'A' is at a significantly higher position in the png file. When working with inkscape, the 'A' is below the center of the red circle.
Problem 2: When trying rsvg --width 80 eumel.svg eumel.png (same as above, just 80 instead of 160) I get the error message *** attempt to put segment in horiz list twice
Which of both programs causes these problems? Is it inkscape or rsvg?
regards Hadmut
Don't use librsvg 2.9.5 - it's horribly ancient. Please use 2.12.x or newer.
Also, if you have questions about "which one is correct", try getting independant confirmation from another tool. If Batik or Adobe's output looks more like Inkscape's, then librsvg likely has a bug. And vice versa.
Best, Dom
On 11/11/05, Hadmut Danisch <hadmut@...1280...> wrote:
Hi,
I just made the attached svg graphics with inkscape 0.42.2 and rendered it with librsvg 2.9.5 with the command
rsvg --width 160 eumel.svg eumel.png
Both files are attached.
Problem 1: The 'A' is at a significantly higher position in the png file. When working with inkscape, the 'A' is below the center of the red circle.
Problem 2: When trying rsvg --width 80 eumel.svg eumel.png (same as above, just 80 instead of 160) I get the error message *** attempt to put segment in horiz list twice
Which of both programs causes these problems? Is it inkscape or rsvg?
regards Hadmut
Why don't you use the inkscape executable to do your work if you want to make it on the commandline ?
This line converts all svg in a folder to png format.
for i in *.svg; do inkscape -f "$i" -e "$i.png" -w 128; done
*Sincerely Ezequias*
Dominic Lachowicz wrote:
Don't use librsvg 2.9.5 - it's horribly ancient. Please use 2.12.x or newer
On Fri, Nov 11, 2005 at 09:52:22AM -0300, Ezequias Rodrigues da Rocha wrote:
Why don't you use the inkscape executable to do your work if you want to make it on the commandline ?
Because it does not answer the question whether inkscape or rsvg is correct. If I use inkscape to generate lots of graphics just because it converts the svg to png as expected, I might run into the trap that I generate dozens of wrong svgs. I'd like to know before generating graphics whether they are correct or not.
regards Hadmut
On Fri, Nov 11, 2005 at 07:01:48PM +0100, Hadmut Danisch wrote:
On Fri, Nov 11, 2005 at 09:52:22AM -0300, Ezequias Rodrigues da Rocha wrote:
Why don't you use the inkscape executable to do your work if you want to make it on the commandline ?
Because it does not answer the question whether inkscape or rsvg is correct. If I use inkscape to generate lots of graphics just because it converts the svg to png as expected, I might run into the trap that I generate dozens of wrong svgs. I'd like to know before generating graphics whether they are correct or not.
Hi Hadmut,
Since neither rsvg nor inkscape are 100% done at implementing the SVG spec, there may be some SVG's that render more correct on rsvg, and others that are more correct on inkscape. I don't think a blanket statement can be made that one is always going to be better than the other for all images. As already mentioned, Adobe and Batik tend to match the SVG spec more closely so it can be worth comparing a given image to them.
Btw, I don't know if this would be of use to you, but I've built a test for SVG's (svg_rendertest):
http://sourceforge.net/project/showfiles.php?group_id=93438&package_id=1...
It allows running multiple renderers on a directory of SVG's to produce png's, and then does a visual diff between them. There's also a script that I rigged up to allow using Batik to produce pngs that might be useful (you may need to fix up the paths in it to match your java install though).
Good luck and definitely keep reporting these sorts of differences, as we all want all the projects to be equally good at rendering an svg the same way.
Bryce
participants (4)
-
Bryce Harrington
-
Dominic Lachowicz
-
Ezequias Rodrigues da Rocha
-
Hadmut Danisch