Bug report #21126

Empty SVG exports

Added by Anna Kear over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.4.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:Yes Copied to github as #:28944

Description

At first I was unsure what to report this as (bug or feature suggestion) but then I realized this was all that the window had said, at first:

The SVG I always get is neither the right size nor has the correct dimensions. Most importantly, it's all white (and has no elements) in it. What's the root cause, and when will this be patched up?

History

#1 Updated by Nyall Dawson over 5 years ago

  • Status changed from Open to Closed
  • Resolution set to duplicate

Duplicate of #159

it's a long standing issue in the underlying Qt libraries themselves (i.e. not something which can be fixed in QGIS). Given the longevity of this issue, I think it's only ever going to be fixed when a QGIS user decides to fund improvements in the Qt SVG handling to address this. It's obviously not a high priority for the Qt project itself.

In the meantime the recommended approach is to export as PDF and pull that into the vector editing application (eg. illustrator/inkscape) and then save as svg

#2 Updated by Anna Kear over 5 years ago

  • Status changed from Closed to Reopened

Would there be any way to do this through the rastor-image that is produced?

#3 Updated by Anna Kear over 5 years ago

My question was about blank SVG files in particular, not the documented problem that already exists. Any solution-to that one?

#4 Updated by Giovanni Manghi over 5 years ago

  • Operating System deleted (I think?)
  • Category changed from Geometry to Map Composer/Printing
  • Status changed from Reopened to Closed

Anna Kear wrote:

My question was about blank SVG files in particular, not the documented problem that already exists. Any solution-to that one?

please ask questions in the users/developers mailing lists or on gis stackexchange or QGIS IRC channels.

Also available in: Atom PDF