Mobile app version of vmapp.org
Login or Join
Yeniel278

: How do I create a transparent image that is the diff of two images in gimp? I have two images that are very similar, let's say image A is the base image and image B is the image that

@Yeniel278

Posted in: #Gimp #Mask #Transparency

I have two images that are very similar, let's say image A is the base image and image B is the image that slightly differs. I need to extract all the parts of image B that differs from the base image A and turn them into a third image that has transparency in all the areas that were the same in both images. The differing pixels will come from image B. Basically, just cutting out image B to create an overlay that will later fit on top of image A. I am using GIMP.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel278

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lee3735518

Load both images as layers of the same image
Put the top layer in Difference mode: everything common will be black
Make that view a new layer: Layer>New from visible
Use the Threshold tool with a threshold of 1, you should get white everywhere there was a difference between the two layers
Open the Channels dialogs, right click on any of the R, G or B channels and Channel to selection
Hide/remove the "difference" layer
Activate the layer with Image B and use the selection to Edit>Copy, then use Layer>To new layer

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme