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 518055 - SVG being printed as low res bitmap
SVG being printed as low res bitmap
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
2.20.x
Other Linux
: Normal normal
: GNOME3.0
Assigned To: EOG Maintainers
EOG Maintainers
Depends on: 108435
Blocks:
 
 
Reported: 2008-02-22 12:15 UTC by Alexander Hunziker
Modified: 2010-04-18 13:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Alexander Hunziker 2008-02-22 12:15:12 UTC
eog is rendering SVG files at the resolution specified in the file. When printing, it uses this first rendering, and this often looks crappy because the resolution is too low. Is it possible to print SVG images as vector data or re-render it with a higher resolution before printing?
Comment 1 Felix Riemann 2008-06-02 10:56:03 UTC
Yes, we should print the SVG as vector data.

But I think this requires some internal changes to EOG first, as it is basically structured to handle bitmap data only (so we don't have the vector data handy when it comes to printing).

I'm setting this dependend on the present SVG scaling bug for now, as the required internal changes are pretty much similar (of course it doesn't exclude workarounds for this).
Comment 2 Felix Riemann 2010-03-28 18:04:50 UTC
Setting milestone to GNOME 2.32/3.0 as it looks like we can get real SVG reading support in time. Printing them should not be hard by then.
Comment 3 Felix Riemann 2010-04-18 13:45:37 UTC
Just committed a fix that simply uses librsvg to draw the SVG to the page as vector objects.

commit 871c2c2c97bc5bb3ada342c8ef27c310f4d22847
Author: Felix Riemann <>
Date:   Sun Apr 18 15:42:57 2010 +0200

    Add simple printing support for SVGs
    
    Use librsvg to draw the SVGs to the cairo context during printing.
    Should improve print quality quite a bit. Fixes bug 518055.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.