Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove plain background, set it transparent
#3
Hi,
Thank you for your help.
I've finally got to remove my plain background using this as a plugin in BIMP:
Code:
def plugin_remove_plain_bg(timg, tdrawable):
   
    drawable = pdb.gimp_image_active_drawable(timg)
    pdb.gimp_image_select_color(timg, CHANNEL_OP_REPLACE, drawable, gimpcolor.RGB(149,85,79)) # 95554f
    pdb.gimp_edit_cut(drawable)
I was able to do this by selecting by color because my background is plain color.
Bonus: some isolated pixels had this color and were not contiguous with the background, so removing the entire color does the job the best way for me.
Reply


Messages In This Thread
RE: Remove plain background, set it transparent - by bobJ - 04-23-2021, 07:10 AM

Forum Jump: