04-23-2021, 07:10 AM
Hi,
Thank you for your help.
I've finally got to remove my plain background using this as a plugin in BIMP:
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.
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)
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.