manu12121999 / RemoveBG-GIMP

A small GIMP plugin to easily remove the Background of an Image with remove.bg. Keeps the image size and the original Image
129 stars 16 forks source link

Package gimp-python no longer sourceable - will your plugin work without it ? #10

Closed corinthian13 closed 1 year ago

corinthian13 commented 2 years ago

I've tried sourcing gimp-python as the usual:

sudo apt install gimp-python

just gives

E: Unable to locate package gimp-python

Will your background removal plugin work without it ?

manu12121999 commented 2 years ago

I guess it can work without it. I think i never installed gimp-python on my machine either.

corinthian13 commented 2 years ago

It's not visible in the Filters menu.

But I do get two new topline menu headings, FX-Foundry and Script-Fu - whatever they are for.

For some reason the screenshot device won't work when I hover on the Filter menu. But take it that Background Remove is not among the items in it.

I checked if requests was installed by attempting a reinstall:

$ sudo python3 -m pip install requests
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.22.0)
$ 

Screenshot from 2022-06-14 21-17-26

manu12121999 commented 2 years ago

This happens when requests is not correctly installed. And installing it is quite tricky, since gimp has an own version on python, so make sure it's is installed for the python of gimp and not your normal python. And how to do it depends on how you installed gimp in the first place. Perhaps you can try the alternative installation method in the section for installing it on windows

corinthian13 commented 2 years ago

I have no Windows machine, I'm proud to say.

Look, does your background remove thing do anything I can't manually do on GIMP ?

I was attracted to it because sometimes after laboriously selecting the foreground image and trying to delete the invert space, nothing happens - except maybe the changing of a background color to the current default. Of course what i want are transparent background images for various background colors in web design.

manu12121999 commented 2 years ago

Firstly, I was aware of you using Linux, i was trying to suggest you try a method similar to the one for Linux( install requests in a virtualenv). Edit: i just noticed that i also put that as installation method for Linux, so forget the windows part

Secondly, yes, it removes the background without manually selecting the background, by uploading it to remove.bg as described in the Readme.

To your problem with the non-Transparent background: this happens when the image does not have an alpha channel(e.g. when opening a jpg) you can right-click your layer and select "add alpha channel" before you press "delete" to fix your problem

corinthian13 commented 2 years ago

Christ.

All you're doing is uploading to remove.bg ?

I thought you had all fancy image analysis code and stuff like that.

I was clicking a checker button instead of selecting Layer > Transparency > Remove Alpha Channel

Okay, thanks.