Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove background with image of the Background
#3
You might get it using a differenced pair of images.

This a possible procedure: too many screenshots so put as a sequence in the attached PDF. edit: This is similar to PixLabs comments

(1) The pair of images
(2) The images differenced to give that black background.
(3) Get a 'flattened' version of that using Image -> New from Visible
(4) Use the Fuzzy select tool to select that black background. To avoid unwanted border pixels use Select -> Grow by two or three  pixels.
(5) Back down to your main 'bear-on-background' layer and turn off the visibility of the other layers. Add a layer mask. Layer -> Mask -> Add Layer Mask. Choose the Selection option and tick the Invert Mask. Using a Layer Mask gives the option to do any repairs such as painting out remaining background etc.
(6) That masks out the background. Kill the selection. Save your work as a Gimp .xcf in case you need to go back for more work

When complete you can export as a png to keep the transparency (a game ? or maybe as a gif )

If that does not work there are other ways of getting that first selection to make the mask. The ForeGround Select tool or drawing round with the free select tool. The Gmic plugin http://www.gmic.eu also has a fg extract filter - this from another post https://i.imgur.com/HrP2gjG.mp4
There are all sorts of ways.


Attached Files
.pdf   mask-it.pdf (Size: 479.19 KB / Downloads: 57)
Reply


Messages In This Thread
RE: Remove background with image of the Background - by rich2005 - 02-24-2023, 09:11 AM

Forum Jump: