I followed most of the instructions on this question about getting the difference between two similar images, using an image with text, where I removed the text and recreated the object it was written on as though it never had the text, then I took the difference - it seems to have worked beautifully, but when I finish step 7, I'm left with a very ghostly equivalent of the words...

When I instead take the result of the "Copy Visible" step, which should be the difference between the original (B) and the version with the text removed (A), which appears to be just the text, and paste it into a third layer on top (I'll call it D, because it's different than the C in the other question), but with the mode in "Addition" instead of "Normal", overlayed on top of A (the background only), it shows the text as expected, but it's decidedly dimmer than I'd prefer.

I had expected to add the difference between the images back to the background, making what appears to be the complete original image, but it's not quite right...

I'm having trouble figuring out where the data I think should be there seems to be lost. I can get close to what I want by increasing the brightness and the contrast, and a small adjustment to colors, but why is it a problem to being with? is there a different mode I should use on one or both steps?

  • 1
    Hi Code Jockey. Welcome to GDSE. I'm having trouble visualising your problem. Any chance you could post the images you started with and the result you got - possibly a screenshot showing your arrangement of layers too. Thanks.
    – Billy Kerr
    Aug 30 '18 at 18:21
  • I'm lost here...
    – Rafael
    Aug 30 '18 at 18:58

To answer your question initial question, difference is not subtraction, it is more like its absolute value, so it is not the opposite of addition (which subtraction is... until you consider that you are limited to the 0-255 range so you overflow/underflow pretty quickly).

As the answer says "Further operations on the layer mask (I recommend using Colors->curve) can adjust the opacity/transparency of the areas on layer C.".

What is copied in the mask is the difference between the two images. Technically it is not often the 255 value that would be required to have a full selection for what you want to keep, it is more likely some gray, which means partial opacity. So you have to apply one of the Color tools (JSB recommends Curves, but IMHO Levels will work just as well) to boost the mask to full white where you want to keep things, and in Levels, use the middle handle to adjust the transitions.

If you use 2.10 there could be a very different solution: set the top layer to the layer without the text, and set it to "Color erase" mode (new in 2.10):

enter image description here

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.