Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,798
» Latest member: jowindo
» Forum threads: 7,602
» Forum posts: 41,428
Full Statistics
|
Latest Threads |
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
36 minutes ago
» Replies: 3
» Views: 761
|
Batch export all opened i...
Forum: Extending the GIMP
Last Post: rich2005
6 hours ago
» Replies: 24
» Views: 14,131
|
Dodge and burn plug-in fo...
Forum: Extending the GIMP
Last Post: chuckhenrich
9 hours ago
» Replies: 0
» Views: 68
|
cannot find plu-gins in g...
Forum: General questions
Last Post: πk2
Yesterday, 08:46 AM
» Replies: 3
» Views: 295
|
ora format... it really w...
Forum: General questions
Last Post: mrkid
09-17-2025, 10:57 PM
» Replies: 3
» Views: 312
|
.pcd files issue?
Forum: OSX
Last Post: T1-Survivor
09-17-2025, 09:45 PM
» Replies: 3
» Views: 557
|
Simplifying a path
Forum: Extending the GIMP
Last Post: Ofnuts
09-17-2025, 03:17 PM
» Replies: 40
» Views: 35,652
|
"Gimp 2.99 & Gimp 3.0" fo...
Forum: Gimp-Forum.net
Last Post: Ofnuts
09-17-2025, 03:12 PM
» Replies: 0
» Views: 281
|
Coincidence or not, that ...
Forum: Watercooler
Last Post: Krikor
09-17-2025, 12:57 PM
» Replies: 2
» Views: 1,302
|
How do you make text circ...
Forum: General questions
Last Post: Krikor
09-17-2025, 12:40 PM
» Replies: 13
» Views: 3,960
|
|
|
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.
|
|
|
|