GNOME Bugzilla – Bug 581494
rsvg-convert / rsvg can't render a non sized svg graphics
Last modified: 2010-04-07 04:04:17 UTC
Please describe the problem: Converting a non-sized svg renders a 1px image. Steps to reproduce: 1. "rsvg-convert -w 100" the file below Actual results: results in a 1px sized png Expected results: Results in a 100px sized png. -> Writes/Overwrites the document size with the one given in command line -> If no size in command line, should render to viewport's/viewbox size. Does this happen every time? yes Other information: sample file: <?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 viewBox="0 0 1500 1000" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg"> <path fill="#FFF5D1" d="M 200,800 200,269 L525,316 L850,316 L1175,316 L1500,540 1500,800 z"/></svg>
I can confirm this bug. Especially when preparing SVG files for web publishing, it is often recommended to remove absolute width and height values, so that the SVG file scales to fit. But these files get a completely transparent thumbnail in GNOME, which uses rsvg for generating SVG thumbnails. It would be nice to have this fixed.
I can also confirm this bug. I have tried to get a PNG version of the following file: http://upload.wikimedia.org/wikipedia/commons/8/8b/Copyleft.svg PNG result is a full empty file. Adding the following attributes and it will work: width="210" height="297"
*** This bug has been marked as a duplicate of bug 614018 ***