Inpainting (removing) a strawberry by calling GMIC from bash in GIMP 2.99.19
https://github.com/LinuxBeaver/AI_in_Gi ... h/releasesThis plugin was used to call GMIC's inpainting tool with GEGL at a set preset by running one of these commands in GEGL bash plugin
gmic /tmp/in.png output /tmp/out3.webp && gmic /tmp/out3.webp fx_inpaint_patch 7,16,0.1,1.2,0,0.05,10,1,255,0,0,255,0,0 -o /tmp/out.png
gmic /tmp/in.png output /tmp/out3.webp && gmic /tmp/out3.webp fx_inpaint_matchpatch 0,9,10,5,1,255,0,0,255,0,0 -o /tmp/out.png
Remember it doesn't work proper non-destructively so the layer effect has to be merged (made destructive) in 2.99.19 after applying.
Original ImageAttachment:
pasted_image124.png [ 775.88 KiB | Viewed 128 times ]
I paint the strawberry red destructively on a GIMP layer then I run the bash command to call GMIC
Attachment:
2024-04-29_12-29.png [ 213.41 KiB | Viewed 128 times ]
After inpaintAttachment:
pasted_image125.png [ 497.31 KiB | Viewed 128 times ]