Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting background color/pattern of Inkscape workspace to distinguish transparency

Tags:

inkscape

How can I set the appearance of the background area in Inkscape so that I can tell the difference between an image with a white background and an image with a transparent background?

Many other image view/editing programs have a checkered background for exactly this reason, but I couldn't find anything like that for Inkscape.

like image 740
blahdiblah Avatar asked Feb 17 '12 02:02

blahdiblah


People also ask

How do I make the background transparent in Inkscape?

Beginners are sometimes surprised that their exported image has a transparent background. To change this, open File ‣ Document Properties ( Shift + Ctrl + D ), then for a white background, set the alpha channel of the background color to 255 after a click on the Background Color field.

How do you change the background color in Inkscape?

To change the default background color in Inkscape, open up the Document Properties menu by pressing Control + Shift + D, then click on “Background color” and set it to any color you'd like using the menu interface.

How do I make SVG background transparent in Inkscape?

If you'd like to make your SVG background transparent in the sense that it displays a grayscale checkerboard pattern (like GIMP and other applications do) instead of white, you can do so by navigating to File > Document Properties and ticking the box that read Checkerboard Background.


4 Answers

In InkScape 0.48:

File > Document Properties > Page > General > Background

Move R, G, and B to 0. Adjust A (Alpha) to your preference (experiment to set to your liking).

Note that this approach will set the color you choose as the background for the saved/exported image.


In InkScape 0.92:

File > Document Properties > Page > General > Background > Checkerboard background

Since version 0.92 (January 2017) you can instead choose a checkered background. This won't effect the background of the saved image, but will override the background shown in InkScape.

like image 123
Michael Avatar answered Oct 13 '22 20:10

Michael


A slight refinement to Carl's answer:

  1. Create a background layer. In it draw a large rectangle of your desired background colour.

  2. Lock the layer to avoid selecting the background rectangle object.

like image 21
Mark Avatar answered Oct 13 '22 19:10

Mark


I've written a feature request for this on the Inkscape bug tracker. This is currently not possible, we'll see if it gets implemented in the future.

see https://bugs.launchpad.net/inkscape/+bug/1100755

EDIT Jul 2016: The feature has been added and should be included in the upcoming 0.92 release.

like image 20
TBieniek Avatar answered Oct 13 '22 20:10

TBieniek


I use a big square, rectangle, oval, etc (whatever covers and hides the image completely), set the color to something ugly that obviously isn't part of the image design, then lower the shape to the bottom of the drawing so every other object is above it. Anything that is transparent will show the ugly color. When I am done editing, I delete the ugly-color shape that I created. Granted, it's a work-around, but it's relatively painless and easy to do.

like image 6
Carl Avatar answered Oct 13 '22 19:10

Carl