Export SVG as PNG with transparent background (command-line tool)

Asked by Siggy

Hey guys,

I currently struggle to export a SVG that has a non transparent background (background in document properties is non transparent so that I can see the white outlines of my graphics) to a PNG with a transparent background.

Specifying the background color with option "-b" works for rgb(r, g, b) or #rgb
but unfortunately I can not export it using an alpha channel.

I tried rgba(r,g,b,a), #rgba and rgb(r,g,b,a). Everthing resulted in a PNG with a white background (#ffffffff)

Appreciate every help! :)

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Siggy
Solved:
Last query:
Last reply:
Revision history for this message
Mc (mc...) said :
#1

from "man inkscape" :
           -b, --export-background=COLOR
           -y, --export-background-opacity=VALUE

-y 0 may do the trick :)

Revision history for this message
Siggy (dennisschwarz2501) said :
#2

Oh my goooood :D
I totally overlooked this...
Thank you very much!