Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I have two images A and B which are similar in many regions.

I want to create an image C so that

B = C on top of A

where C should be as transparent as possible. on top of is the normal layer superposition.

So C is some kind of difference between A and B. If A and B are identical, then C is totally transparent. If A and B are very different, then their C would be nearly identical to B.

share|improve this question

1 Answer 1

You could use the "difference" layer mode to create a layer mask, and apply it to B - like this:

  1. open both images as layers, A on the bottom, B on top
  2. On the layer's dialog, mark B's layer mode as "difference". You now should see the image mostly black is the images are alike, with the colored areas marking the areas that are different. These colors, however, won't match B's colors as you want
  3. Edit->Copy visible, to get a copy of the calculdated effect on B
  4. Duplicate Layer B, change it's mode back to "Normal" (let's call this layer C)
  5. On the Layers menu, add a layer mask to C (Layer->Mask->Add Layer Mask).
  6. With the mask selected, paste the contents copied in step 3 (edit->paste).
  7. Anchor the pasted contents on the layer's mask (layer->Anchor layer)

there your are - make Layers A and B invisible, and you should be very close to what you want., Further operations on the layer mask (I recomend using Colors->curve) can adjust the opacity/trasnparency of the areas on layer C.

share|improve this answer

Your Answer


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.