Optionally export background colour in vector files #568
+122
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Produces non-zero diffs for EPS, PDF, and SVG:
EPS
PDF
SVG
Converted to PNG with imagemagick:


EPS, no:
EPS, yes:
PDF, no:


PDF, yes:
SVG, no:


SVG, yes:
Config GUI option name might need some bikeshedding: "export background color" isn't exactly right since it's for vector files only "export background color in vector files" maybe?
Exports tested in the GUI only due to #567, but the option gets loaded right before crashing, so it should work.
This doesn't change exporting PNGs since those are screenshots and I don't know how to make them not so/if that's viable at all.
Ref: #525