Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-erase-background
#8
Try this
  • Start Gimp, or close all images (we need to have one single image in Gimp).
  • Make/load an image with one single layer with something dark over a white background
  • make sure the layer has an alpha-channel
  • start the Python console (Filters>Python-fu>Console) and copy these two lines one by one followed by [enter]:
Code:
image=gimp.image_list()[0]
pdb.plug_in_colortoalpha(image,image.active_layer,(255,255,255))

Is the white background removed?

PS: when the script ends, have you got a selection? Is it the original one, or has it been shrunk or grown?
Reply


Messages In This Thread
ofn-erase-background - by Ofnuts - 10-30-2016, 02:19 PM
RE: ofn-erase-background - by Espermaschine - 10-30-2016, 03:53 PM
RE: ofn-erase-background - by Ofnuts - 10-30-2016, 07:25 PM
RE: ofn-erase-background - by Espermaschine - 10-30-2016, 07:39 PM
RE: ofn-erase-background - by Ofnuts - 10-30-2016, 09:23 PM
RE: ofn-erase-background - by Espermaschine - 10-30-2016, 09:54 PM
RE: ofn-erase-background - by Ofnuts - 10-30-2016, 11:04 PM
RE: ofn-erase-background - by Ofnuts - 10-30-2016, 11:21 PM
RE: ofn-erase-background - by Espermaschine - 10-30-2016, 11:30 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 02:37 PM
RE: ofn-erase-background - by Kevin - 10-31-2016, 03:45 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 05:35 PM
RE: ofn-erase-background - by Espermaschine - 10-31-2016, 07:22 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 08:10 PM
RE: ofn-erase-background - by Espermaschine - 10-31-2016, 08:35 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 09:27 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 10:14 PM
RE: ofn-erase-background - by Ofnuts - 10-31-2016, 10:28 PM
RE: ofn-erase-background - by Espermaschine - 10-31-2016, 10:51 PM
RE: ofn-erase-background - by Ofnuts - 11-01-2016, 12:10 AM
RE: ofn-erase-background - by Espermaschine - 11-01-2016, 12:27 AM
RE: ofn-erase-background - by Ofnuts - 11-01-2016, 11:01 AM
RE: ofn-erase-background - by Kevin - 11-01-2016, 11:21 AM
RE: ofn-erase-background - by Ofnuts - 11-01-2016, 11:31 AM
RE: ofn-erase-background - by Ofnuts - 11-01-2016, 11:31 AM
RE: ofn-erase-background - by Espermaschine - 11-01-2016, 03:12 PM
RE: ofn-erase-background - by Ofnuts - 03-30-2018, 12:19 PM
RE: ofn-erase-background - by Espermaschine - 03-30-2018, 12:46 PM
RE: ofn-erase-background - by Ofnuts - 03-30-2018, 09:25 PM
RE: ofn-erase-background - by Espermaschine - 03-31-2018, 04:51 AM
RE: ofn-erase-background - by Ofnuts - 03-31-2018, 08:13 AM
RE: ofn-erase-background - by Ofnuts - 03-31-2018, 09:27 PM
RE: ofn-erase-background - by Espermaschine - 04-01-2018, 05:30 AM
RE: ofn-erase-background - by Ofnuts - 04-01-2018, 08:13 AM

Forum Jump: