After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581494 - rsvg-convert / rsvg can't render a non sized svg graphics
rsvg-convert / rsvg can't render a non sized svg graphics
Status: RESOLVED DUPLICATE of bug 614018
Product: librsvg
Classification: Core
Component: general
2.26.x
Other All
: Normal minor
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-05 16:31 UTC by Francois Cartegnie
Modified: 2010-04-07 04:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Francois Cartegnie 2009-05-05 16:31:11 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>
Comment 1 Frederik Elwert 2009-07-05 16:01:54 UTC
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.
Comment 2 emmanuel@engelhart.org 2009-08-28 08:32:23 UTC
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"
Comment 3 Hiroyuki Ikezoe 2010-04-07 04:04:17 UTC

*** This bug has been marked as a duplicate of bug 614018 ***