-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG symbols not correctly exported to svg and pdf via print composer #16588
Comments
Author Name: Andrea Ghensi (@sanzoghenzo) I forgot, Qgis 1.8 from kyngchaos... |
Author Name: Larry Shaffer (Larry Shaffer) Hi Andrea, Please test this with the "nightly build of pre-2.0 available here":http://qgis.dakotacarto.com/ When running that version, all of your settings and plugins will be 'missing' or reset as it uses a new settings and plugins directory structure. This should not affect your 1.8 setup. Of note, however, is that your version of the Kyngchaos frameworks may be outdated for use by the nightly, so just launch the nightly to find out. The Snow Leopard nightly does not yet use the very latest frameworks, so it should not hurt anything by upgrading your frameworks. |
Author Name: Andrea Ghensi (@sanzoghenzo) just tried, nothing changed. |
Author Name: Andrea Ghensi (@sanzoghenzo) I tried to clean up the icons with http://launchpad.net/svg-cleaner
|
Author Name: Andrea Ghensi (@sanzoghenzo) Now I'm using 1.9.0 93faa76, still the same.
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jonathan Gutschi (Jonathan Gutschi) Hi guys, I'm experiencing the same issue on Ubuntu 14.04 LTS using QGIS 2.0.1. Confirming that running the Mapbox Maki icons through SVG-Cleaner as suggested by Andrea does fix the problem as a workaround. Exporting through the system print dialog does however not work on Ubuntu. The icons are still drawn with a rectangle border in the same way as when using the export to PDF or SVG option. Was any progress made so far in figuring out why the icons are rendered correctly on screen and in the preview but not when exporting? @Andrea: Thanks for reporting this, certainly saved me a lot of time! |
Author Name: Daan Goedkoop (@dgoedkoop) Still a problem in version 2.14. Apparently, when an svg image is exported, through the print composer, to pdf or svg, not only the border and the filling is rendered, but also another border, using the fill color (or with neither pen nor fill style set if the object has no fill). The width of this second border, and therefore the impact of this bug, seems to be dependent on the coordinates in the source svg. With an svg with coordinates in the range 0-1000 the width of the wrongly added second border is very small; with an svg with coordinates in the range 0.00-1.00 this border gets huge. The attachment shows a dissection of the export of two svg files. They had the same contents, just different orders of magnitude for the coordinates. For each file the left column shows the border (as intended), the middle column the fill (as intended) and the right column the wrongly created second border.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Nyall Dawson (@nyalldawson) Fixed in the qt5 based builds
|
Author Name: Andrea Ghensi (@sanzoghenzo)
Original Redmine Issue: 7671
Affected QGIS version: master
Redmine category:map_composer/printing
I'm using svg symbols taken from https://github.com/mapbox/maki in my maps.
When I try to export layers from print composer to svg (or pdf) for further editing in Inkscape, the icons are messed up.
Printing to pdf (osx preview) preserves the correct style.
Print composer also displays icons in the right way.
Attached are one of the SVG symbols I used, the svg and pdf export of print composer and the "printed" pdf
The text was updated successfully, but these errors were encountered: