13

In GIMP I have 2 images with exact same size and properties but different layers. Now I have a relatively large layer group, which I would like to copy to the other image. As usual I copy and paste it. Now it is a floating selection. As suggested in the docs, I click to anchor the floating selection. However, after clicking "anchor", floating selection disappears.

Is my GIMP has a bug or am I doing something wrong here?

Correction: I can copy a layer group but it comes flattened/merged as one single layer. I do want to keep it as a layer group.

14

Copy&paste is the wrong approach to copy layers from one image to another - this will only transfer the layer content, and as you have discovered that isn't the same as a layer or group of layers.

Instead, drag the layer or layer group from the layers dialog of the source image to an image window of the target image. This will keep them intact, including any possible layer parasites (this is important for text layers, for example).

  • I tried this (in 2.8.4) and it didn't work for me. Were you able to test and confirm that this works? – Scribblemacher Aug 28 '15 at 17:26
  • Yes, I did confirm this before writing my answer. 2.8.4 is ancient, though - I'm using 2.8.14. – Michael Schumacher Aug 28 '15 at 17:30
  • I'm building 2.8.4 right now to check if this behaved any different. – Michael Schumacher Aug 29 '15 at 16:53
  • Works just fine for me with 2.8.4. – Michael Schumacher Aug 29 '15 at 18:57
  • 1
    Linux Mint, Gimp 2.8.10. Dragging fials to both image and Layers panel. It starts, but dropping does nothing. – Zon Sep 28 '17 at 5:27
9

Save the original image with the layer group as an xcf. In the new image, and open the original as layers (File > Open as Layers). This will add all of the layers from the original image.

You'll need to delete the layers from the new image that you don't want. Unfortunately you can't pick/choose what layers you import. But as long as this is only a one-time transfer (i.e. you don't need to copy/paste the layer group back and forth) this should work.

EDIT: This was tested in GIMP 2.8.4. Michael's answer is a better way, if you are using a version of GIMP that supports it.

  • I didn't test this, but I think this also works out well. I could not upvote it sorry! (requires 15 reputation) – Genom Aug 30 '15 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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