Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rembg
#1
I have rembg installed locally on 22.04 and it is working fine through Terminal.

https://github.com/danielgatis/rembg

It would be nice to know how to use the GIMP plugin though. Any help will be great.

PS: I am using the GIMP AppImage.  

Thanks.

I added the file from GIMP Chat to the plugins folder for the AppImage, but I do not see any PythonFu entry in the menu

I think the script is for Flatpak and I am using AppImage

There is a line in the script which says

Code:
cmd = "flatpak-spawn --host %s i %s %s %s" % (aiExe, option, jpgFile, pngFile)

Not sure which is the right command for the AppImage

There is also a part which says remove temporary files


Code:
if removeTmpFile:
        if osName == "Windows":
            del_command = "del \"%s%sTemp-gimp-0000.*\"" % (tdir, exportSep)
        else:
            del_command = "rm %s%sTemp-gimp-0000.*" % (tdir, exportSep)
        os.system(del_command)

Is the right command for Ubuntu?

I replaced the Chinese text with English. Not sharing because I have no intention to remove parts of original code distribute.

Looks like I have to install Python2 to get gimpfu working. Because there is a line saying

from gimpfu import *

Tried installing Python 2 and it says

python2 is already the newest version (2.7.18-3).

Not sure how to get the PythonFu working inside GIMP AppImage. Maybe Flatpak version is the only option.
Reply


Messages In This Thread
rembg - by meetdilip - 12-22-2022, 09:32 AM
RE: rembg - by meetdilip - 12-22-2022, 04:21 PM
RE: rembg - by rich2005 - 12-22-2022, 05:37 PM
RE: rembg - by meetdilip - 12-22-2022, 10:37 PM
RE: rembg - by meetdilip - 12-23-2022, 03:15 AM
RE: rembg - by rich2005 - 12-23-2022, 11:24 AM
RE: rembg - by meetdilip - 12-23-2022, 12:35 PM
RE: rembg - by Tas_mania - 12-28-2022, 09:54 PM
RE: rembg - by meetdilip - 12-29-2022, 04:31 AM
RE: rembg - by meetdilip - 02-18-2023, 08:59 PM

Forum Jump: