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
Not sure which is the right command for the AppImage
There is also a part which says remove temporary files
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.
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.