Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to copy objects from one window to another without losing the surrounding transparency.

I have two Inkscape windows. The setup is pretty simple. In the first window I draw a filled circle and a filled rectangle in it, with the circle set on top of the rectangle to show that the area around the circle is transparent (that is, you can see the rectangle "under" the circle, see screenshot 1, left). In the second window I just drew a filled rectangle (screenshot 1, right).

Before

When I copy the circle from window 1 to window 2 the transparency around the circle is lost (screenshot 2).

After

I've verified that the backgrounds of the documents are 0% alpha/white.

This is a rather contrived example but is readily reproducible. The real graphics I am working with have a bunch of objects all in a single group, but I have the same results. I feel like I'm missing something. The circle no longer behaves like a circle at its destination. Instead, it acts kind of like a bitmap. I'm definitely not using the bitmap copy feature.

share|improve this question

migrated from stackoverflow.com Dec 21 '10 at 14:50

This question came from our site for professional and enthusiast programmers.

4 Answers 4

up vote 2 down vote accepted

I had the same problem. It seems the objects that have been copy-pasted have a white background. I found a way to put objects into another window without that background:

  • save your first file (svg format)
  • go to the other window
  • import it (File -> Import)

This will import all objects that were in the first file, but you can delete the ones you don't need.

share|improve this answer

The underlying problem is that with current Inkscape packages for Mac OS X the pasted objects are indeed pasted as bitmap images (with a solid white background), instead of being pasted as vector copies of the original vector objects.

This is due to a known upstream conflict with the pasteboard syncing in X11/Xquartz: Copied vector objects are pasted as bitmap images, and no vector information (style, path) is available in other Inkscape commands either which expect vector data on the clipboard (e.g. paste style, paste size, 'Shape: from clipboard' in pencil/pen tools, 'Paste path' in the path effect editor, etc.)

Please adjust the X11 preferences for the pasteboard as described in the Inkscape FAQ: Copying and pasting in Inkscape creates pixellated images instead of copying the vector objects (and as seen in this screenshot). The changes will take effect immediately (no need to restart X11/XQuartz or Inkscape), but objects copied and pasted earlier will have to be redone.

share|improve this answer
    
Good job on revealing the root cause of this behaviour. –  Mihai Damian Apr 23 '13 at 18:17

In X11 preferences untick "Update Pasteboard when CLIPBOARD changes": enter image description here

Alternatively, you can use the shortcut Ctrl-D to duplicate the selected object as this doesn't touch the clipboard.

share|improve this answer

I think you want to Clone the object instead of using Copy - when you Copy, Inkscape pastes as if it were a bitmap. Using Clone, I'm able to get the transparency I'd expect when overlapping an object.

share|improve this answer
    
Can you clone from one window to another? I haven't found a way. –  dpk Jan 13 '11 at 21:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.