Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-erase-background
#7
Your final image is normal as an intermediate step... but it is what I get when removing the color-to-alpha step from the script. There are only three lines of code at play there:

Code:
pdb.gimp_image_select_item(image, CHANNEL_OP_REPLACE, savedSelection)
pdb.gimp_selection_grow(image,2)
pdb.plug_in_colortoalpha(image,layer,(r,g,b))
The first one is the verbatim repeat of another operation, so I don't see it failing the 2nd time around, the second is too trivial to be a suspect, which leaves us with the third one. Have you got a functional Color-to-alpha plugin?
 
Also AFAIK if the code crashes you'll get a message. If you have the error console the messages are quietly logged there and easily overlooked.

Have you got a saved selection channel?
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: