Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,627
» Latest member: Jasonher
» Forum threads: 7,490
» Forum posts: 40,884
Full Statistics
|
Latest Threads |
edit_paste pastes at inco...
Forum: Scripting questions
Last Post: class43
Yesterday, 03:48 PM
» Replies: 2
» Views: 121
|
CMYK color mode Gimp 2.10
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 12:13 PM
» Replies: 20
» Views: 82,200
|
Open, save buttons on bot...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: GrumpyDeveloper
07-17-2025, 09:52 PM
» Replies: 8
» Views: 2,962
|
Clone size randomly chang...
Forum: General questions
Last Post: oldschool1@runbox.com
07-17-2025, 05:45 PM
» Replies: 2
» Views: 192
|
AI Gimp Plugins
Forum: Watercooler
Last Post: Zbyma72age
07-17-2025, 03:31 PM
» Replies: 20
» Views: 53,591
|
Gimp closes automatically
Forum: General questions
Last Post: sallyanne
07-17-2025, 05:50 AM
» Replies: 2
» Views: 221
|
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: vitforlinux
07-16-2025, 11:10 AM
» Replies: 12
» Views: 3,850
|
Is This Possible ? Print ...
Forum: General questions
Last Post: sallyanne
07-16-2025, 07:47 AM
» Replies: 4
» Views: 213
|
Gimp Crash
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
07-16-2025, 07:16 AM
» Replies: 1
» Views: 158
|
producing an image
Forum: Gallery
Last Post: MJ Barmish
07-15-2025, 06:37 PM
» Replies: 0
» Views: 119
|
|
|
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.
|
|
|
|