| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,254
» Latest member: MurilloR
» Forum threads: 7,880
» Forum posts: 42,777
Full Statistics
|
| Latest Threads |
Beginner question - setti...
Forum: General questions
Last Post: rich2005
1 minute ago
» Replies: 10
» Views: 1,017
|
GIMP 3.2 in the User CP
Forum: Gimp-Forum.net
Last Post: PixLab
1 hour ago
» Replies: 0
» Views: 28
|
Gimp-Forum.net has not be...
Forum: Gimp-Forum.net
Last Post: PixLab
1 hour ago
» Replies: 14
» Views: 1,187
|
key-mon don't want to ins...
Forum: Watercooler
Last Post: PixLab
4 hours ago
» Replies: 4
» Views: 190
|
GIMP: The Movie | Officia...
Forum: Gallery
Last Post: MurilloR
Yesterday, 01:19 PM
» Replies: 4
» Views: 2,792
|
Transform Handles hard to...
Forum: General questions
Last Post: rich2005
Yesterday, 08:23 AM
» Replies: 3
» Views: 206
|
Off-Line Documentation
Forum: General questions
Last Post: LGLDSR73
04-28-2026, 08:34 PM
» Replies: 0
» Views: 1
|
Gimp V.3.2.x No Batch Edi...
Forum: General questions
Last Post: Taggs
04-28-2026, 01:42 PM
» Replies: 3
» Views: 227
|
Gradient issue on large i...
Forum: General questions
Last Post: rich2005
04-28-2026, 08:32 AM
» Replies: 7
» Views: 460
|
Scanner menu missing
Forum: General questions
Last Post: rich2005
04-27-2026, 08:13 AM
» Replies: 11
» Views: 1,597
|
|
|
| Remove plain background, set it transparent |
|
Posted by: bobJ - 04-22-2021, 10:07 PM - Forum: Scripting questions
- Replies (4)
|
 |
Hello,
I have 1500 png to process so I'm searching a script/plugin to do this.
Given a png, I would like the script to do the following:
- do a magic selection (wand/fuzzy) with starting point coordinattes 1,1 (I know this pixel is the background color)
- remove this selection and have transparency instead
I tried this script in a plugin via BIMP:
Code:
def plugin_use_fuzzy(timg, tdrawable):
pdb.gimp_layer_add_alpha(timg)
pdb.gimp_image_select_contiguous_color(timg, 0, tdrawable, 1, 1)
sel = pdb.gimp_image_get_selection(timg)
pdb.gimp_edit_cut(sel)
But it does nothing.
Could you help me please?
|
|
|
| GIMP V2.99.4 Flatpak Python Issue |
|
Posted by: programmer_ceds - 04-22-2021, 04:49 PM - Forum: Extending the GIMP
- Replies (11)
|
 |
I have installed V2.99.4 flatpak and can run this or V2.10.24 as I wish but not quite in the way suggested where you have to use a flatpak command to select the version that is to be run (beta or stable). If I use the command to select the beta version the Menu/Graphics/GNU Image Manipulation Entry always starts V2.10.24. To start V2.99.4 I have a bash script. I'm not sure that this is relevant to the issue noted below.
When I start V2.99.4 in a terminal window I see the following error message:
Gtk-Message: 17:32:23.772: Failed to load module "xapp-gtk3-module"
So far as I can tell I have this module installed (file usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libxapp-gtk3-module.so exists)
I have also taken the text for the Python Goat exercise and renamed all occurrences of 'goat' to 'goatee' and placed the file in a subfolder of the user plug-ins folder but it doesn't appear in the GIMP menus. Initially I made the mistake of placing it directly in the plug-ins folder and received a warning from GIMP - so it is looking in the user plug-ins folder.
The latest version of the python goat exercise script, as downloaded from the gitlab site, contains statements that it relies on Gimp 3.0 and GimpUi 3.0 - I have tried changing these to 2.99 since that is the beta version - this had no effect.
Has anybody else had more success in this respect?
I thought I would go through the scripts that I have written and those that I have downloaded from elsewhere and update them for GIMP 3 if I could (starting off by running them in V2.10.24 with the --pdb-compat-mode=warn option to report deprecated scripts). I have successfully updated all the .scm files - some run without a problem but many fail with the (known) error message about GimpObjectArray being an unknown return type - I think I just have to retest these when V2.99.6 becomes available. However, as noted above I have hit a problem with the .py files.
|
|
|
|