How can I change Inkscape's default export background color from yellow to white?

38,837

Solution 1

At least for documents created directly in Inkscape, File > Export Bitmap... works as expected. If the document has transparent background, the exported PNG becomes transparent. If it was white, then PNG becomes white.

Please check File > Document Properties > Page > Background and check the aplpha channel (A). On RGB tab set all values to 255, including A.

Checked using Inkscape 0.47 on Ubuntu Linux 10.04.

If your problem happens only on convertion of SVG files created elswhere (not in Inkscape), then you need to post that file, so we can try it out.

Solution 2

-b on the command line

E.g. to get a white background instead of the now default transparent:

inkscape -b FFFFFF -h 1024 input.svg -o output.png

Tested on Inkscape 1.0.1, Ubuntu 20.10.

Related: https://graphicdesign.stackexchange.com/questions/74906/in-inkscape-how-do-i-add-a-white-background

Solution 3

I solved this problem by choosing

  • File -> Export PNG Image and then "Page" as the export option. Also I chose
  • File -> Document Properties -> Background Color -> R: 255 G: 255 B: 255 A:255

and then exporting.

Share:
38,837

Related videos on Youtube

Shan
Author by

Shan

Updated on September 17, 2022

Comments

  • Shan
    Shan over 1 year

    I am using export in 'Inkscape' to convert an SVG file to PNG. As I am using a transparent background, the colour of background is automatically set to yellow. I want to change this default colour to white. How can I do this?

  • Shan
    Shan about 13 years
    hi. thanks a lot... it was inkscape svg... it worked very good...
  • Admin
    Admin over 12 years
    Yes, but this is not realy intuitiv implemented, there is no button for it. Normally the export dialog have give this option too.
  • JW.
    JW. over 10 years
    This helped me today. I appreciate it! +1
  • serge
    serge over 5 years
    "A" should be 255, not 0
  • Admin
    Admin almost 2 years
    Now, it is corrected...