Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have two pictures of irregular shape with transparent background and a background image.

How can I join these two pictures to make them fade with each other, but not with the background image?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Given you have an image with three layers, the background layer and your two objects each in its own layer on top of it, you can do the following:

  1. Add a layer mask to each of the two object layers and select Layer's Alpha Channel in the Add Layer Mask dialogue.
  2. Select Show Layer Mask in the layer context menu and copy the mask by doing select all and copy in the main window with the respective layer selected in the layers window.

    You should now have two layers containing just the content of the two layer masks. You might have to use the align tool to get the layer mask copies back on top of their respective layers.

  3. Combine the layer mask layers with the Lighten Only blend mode and merge them.

  4. Remove the layer masks from the two object layers and set them both to 50% opacity. Merge these two, as well.

  5. Now create a new layer mask for this new layer (it's pretty much irrelevant what you initialise it with this time).

  6. Show the layer mask, copy the layer with the two merged layer masks and use paste into or aligning again to get a new floating layer right on top of the layer with the two objects.

  7. Anchor it to make it its new layer mask (this could probably be done with channels more elegantly but I'm not familiar with those anymore).

Now you should be able to hide the layer mask in the popup menu again and see the final result you desired. Good luck!

Oh and if there's an easier way to do this seemingly simple task of crossfading two layers, I'd also be interested to know.

share|improve this answer
    
Thanks. Actually, I have more than 2 layers, so I got completely lost. ;) Waiting for an easier way, too. –  iis Jul 14 '13 at 11:35
    
@iis The principle should be the same, though. You might want to go step by step through my description with only two layers to try it out. Tell me where I wasn't clear enough and you get lost. After you did it once with two layers I'm pretty sure you can do it yourself with more layers. And learning about layer masks in the process is never a bad thing because they are very powerful, even though the implementation in gimp is unnecessarily cumbersome unfortunately. Good luck and let me know if you get stuck. –  Christian Jul 14 '13 at 13:16
    
I managed to do everything with two layers, following your instructions. Adding more layers is a bit tricky, because you need to copy every layers and make each pair crossfade, e.g. layer A with layer B, a copy of A with C and a copy of B with C. It's just a bit messy. –  iis Jul 14 '13 at 16:16
    
@iis Can't you blend all at once? –  Christian Jul 14 '13 at 20:49
add comment

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.