Filled Paths do not have transparent background

Post questions on how to use or achieve an effect in Inkscape.
Ishmael
Posts: 4
Joined: Tue May 25, 2010 3:23 am

Filled Paths do not have transparent background

Postby Ishmael » Tue May 25, 2010 3:48 am

drawing.png
drawing.png (16.93 KiB) Viewed 1194 times
I have created a path, then filled it. The background (area between the filled path and the rectangular bounding box) is white. How do I set it to be transparent? I tried setting the clipping path, but it didn't work. The attached image has two layers with the same object.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Filled Paths do not have transparent background

Postby prkos » Tue May 25, 2010 5:28 am

It's already transparent, if you export it to png you will see black and transparent.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Filled Paths do not have transparent background

Postby ~suv » Tue May 25, 2010 6:13 am

…and remember to use 'File > Export Bitmap…' to preserve the default transparent background of the SVG file
[ i.e. do not use 'File > Save as…' -> Cairo PNG (*.png) ]

Ishmael
Posts: 4
Joined: Tue May 25, 2010 3:23 am

Re: Filled Paths do not have transparent background

Postby Ishmael » Tue May 25, 2010 7:28 am

Thanks for your replies! I finally figured out what the problem was. Namely, once I drew the shape and filled it, I just Copy-Pasted it (Control-C, Control-V). For some reason, it included the white background (which is supposedly actually transparent). In order to avoid that, I discovered that you have to use the "Duplicate" option instead. Works great now!

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Filled Paths do not have transparent background

Postby ~suv » Tue May 25, 2010 12:58 pm

You are working on Mac OS X? ;)

It is a known issue that Copy&Paste in Inkscape running on OS X (Snow) Leopard under current X11/Xquartz versions causes the pasted data to be inserted as bitmap copy instead of vector data. You need to change your X11 preferences for the pasteboard:

Inkscape FAQ " Copying and pasting in Inkscape creates pixellated images instead of copying the vector objects"
Screenshot: X11 pasteboard preferences

Bug reports:
Bug #307005 in Inkscape: “[OS X] copy & paste inserts a bitmap copy instead of the vector object
XQuartz ticket #403: "Copy/Paste in Inkscape pastes bitmaps"


Return to “Help with using Inkscape”