| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,100
» Latest member: StevenMar
» Forum threads: 7,797
» Forum posts: 42,352
Full Statistics
|
| Latest Threads |
Selective transparency
Forum: General questions
Last Post: aka
1 hour ago
» Replies: 3
» Views: 146
|
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 12:07 PM
» Replies: 12
» Views: 12,831
|
Can you identify effects/...
Forum: General questions
Last Post: rich2005
02-02-2026, 09:34 AM
» Replies: 11
» Views: 685
|
GIMP 3.0.8 Installation
Forum: Windows
Last Post: rich2005
02-01-2026, 08:30 AM
» Replies: 2
» Views: 470
|
Best way to recolor this ...
Forum: General questions
Last Post: rich2005
02-01-2026, 08:25 AM
» Replies: 12
» Views: 963
|
A Search For Missing Belg...
Forum: Watercooler
Last Post: Tas_mania
02-01-2026, 03:18 AM
» Replies: 3
» Views: 1,184
|
eps file won't open
Forum: General questions
Last Post: rich2005
01-30-2026, 09:26 AM
» Replies: 2
» Views: 287
|
undesirable grid
Forum: General questions
Last Post: rich2005
01-29-2026, 12:45 PM
» Replies: 1
» Views: 248
|
GIMP won't start after fr...
Forum: Windows
Last Post: denzjos
01-27-2026, 05:04 PM
» Replies: 2
» Views: 373
|
Display not keeping up wi...
Forum: Extending the GIMP
Last Post: nmw01223
01-26-2026, 06:39 PM
» Replies: 2
» Views: 387
|
|
|
| Python Script Another Discrepency |
|
Posted by: silenuznowan - 04-01-2025, 08:37 PM - Forum: Extending the GIMP
- Replies (7)
|
 |
I had a function in version 2 that inserted layers into a specific layer group.
I'm now trying to use the same procedure in Gimp 3 but have run into a type error.
First here's the doc:
Quote:This procedure adds the specified layer to the image at the given position. If the specified parent is a valid layer group (See 'gimp-item-is-group' and 'gimp-layer-group-new') then the layer is added inside the group. If the parent is 0, the layer is added inside the main stack, outside of any group. The position argument specifies the location of the layer inside the stack (or the group, if a valid parent was supplied), starting from the top (0) and increasing. If the position is specified as -1 and the parent is specified as 0, then the layer is inserted above the active layer, or inside the group if the active layer is a layer group. The layer type must be compatible with the image base type.
However if I pass a valid GroupLayer as the value of parent I get the following error:
Code:
TypeError: could not convert (<PDBStatusType.SUCCESS: 3>, <Gimp.GroupLayer object at 0x7f359387fa40 (GimpGroupLayer at 0x5596f842c040)>)
to type 'GimpLayer' when setting property 'GimpProcedureConfig-gimp-image-insert-layer.parent'
Is there another way to insert layers into a specific LayerGroup ?
Edit I was trying to further figure things out and I notice that passing a LayerGroup to the procedure gimp-item-is-group results in a similar typecast error:
Code:
TypeError: could not convert (<PDBStatusType.SUCCESS: 3>, <Gimp.GroupLayer object at 0x7f70a7ebb180 (GimpGroupLayer at 0x5561a26ba060)>)
to type 'GimpItem' when setting property 'GimpProcedureConfig-gimp-item-is-group.item'
Thanks.
This was human error on my part passed the wrong item. Sorry.
|
|
|
| Gimp 3.0 AI Plugins - Updated |
|
Posted by: nchen - 04-01-2025, 04:45 PM - Forum: Extending the GIMP
- Replies (2)
|
 |
Hello everyone,
I have updated my AI plugins for GIMP 3. It's still a work in progress, but it's in a usable state. Feel free to reach out to ask questions or suggest improvements!
They also no longer require specific workflows or custom nodes, unless you intend to use LoRAs.
Currently I'm looking to update the previous auto selection feature to GIMP 3 as well as add AI upscaling options. These features are currently possible if you have an understanding of ComfyUI, but I intend to simplify the process and break them into their own plugins.
Video Demonstration
Github
Edit: Most of the dialog box options (ksampler, checkpoint, lora selection) and previews are optional. It should use the defaults within your selected workflow if values are not available.
|
|
|
| Availability of GTk3 Python bindings in Windows & OSX |
|
Posted by: Ofnuts - 03-31-2025, 09:03 PM - Forum: Extending the GIMP
- Replies (4)
|
 |
Can anyone try this and report? In the Gimp 3.00 python console, enter:
Code:
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
win = Gtk.Window()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()
This should start a small empty Window. Closing the Window will then also close the Python console.
Please report success or state error messages.
Thanks.
|
|
|
| Gimp 3 Python Script - Merge Visible - No Flatten Image? |
|
Posted by: silenuznowan - 03-31-2025, 05:48 PM - Forum: Extending the GIMP
- Replies (6)
|
 |
Not sure if this is a problem with the documentation or if it's a bug, maybe someone here can shed some light.
I'm converting my Gimp 2 scripts to Gimp 3 and noticed that in v3 there is a new merge type listed in the docs for the description of:
gimp-image-merge-visible-layers
Under the parameters it lists:
Quote:The type of merge { EXPAND-AS-NECESSARY (0), CLIP-TO-IMAGE (1), CLIP-TO-BOTTOM-LAYER (2), FLATTEN-IMAGE (3) }, default EXPAND-AS-NECESSARY (0)
However calling gimp-image-merge-visible-layers , like so:
Code:
layer = merge_visible(img, Gimp.MergeType.FLATTEN_IMAGE)
Where merge_visible looks like this:
Code:
def merge_visible(image: Gimp.Image, merge_type: Gimp.MergeType = Gimp.MergeType.EXPAND_AS_NECESSARY)->Gimp.Layer:
"""
Merge the visible layers of an image into a single layer.
This procedure combines the visible layers into a single layer using the specified merge type.
A merge type of EXPAND_AS_NECESSARY expands the final layer to encompass the areas of the visible layers.
A merge type of CLIP_TO_IMAGE clips the final layer to the extents of the image.
A merge type of CLIP_TO_BOTTOM_LAYER clips the final layer to the size of the bottommost layer.
:param image: Gimp image with the layers to be merged
:param merge_type: the type of merge:
0 = Expand as Necessary
1 = Clip to image
2 = clip to bottom
3 = Flatten Image
default = Expand as Necessary
:return: The merged layer
"""
procedure = Gimp.get_pdb().lookup_procedure('gimp-image-merge-visible-layers')
config = procedure.create_config()
config.set_property('image', image)
config.set_property('merge-type', merge_type)
result = procedure.run(config)
success = result.index(0)
layer = result.index(1)
return layer
However this results in an error:
Quote:GIMP-Error: Calling error for procedure 'gimp-image-merge-visible-layers':
Procedure 'gimp-image-merge-visible-layers' has been called with value 'GIMP_FLATTEN_IMAGE' for argument 'merge-type' (#2, type GimpMergeType). This value is out of range.
Thanks,
Jordan
|
|
|
| David's Batch Processor i V3.0 |
|
Posted by: AfTech54 - 03-31-2025, 09:47 AM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (2)
|
 |
I've used David's Batch Processor (Dbp) in v 2.10, the Dbp plugin appears in the Filter menu.
I've got the Dvp file in a MS OneDrive (OD) folder so I have access to my custom settings in my both computers.
Now I've added the (OD) folder to Settings/Folders/Plugins in V 3.0.2 but the plugin doesn't show up under the Filter menu.
I've also added the Dbp file to:
C:\Users\Roger\AppData\Local\Programs\GIMP 3\lib\gimp\3.0\plug-ins
C:\Users\Roger\OneDrive\Roger Private\OD GIMP Set\Custom\plug-ins
I've closed and started GIMP after each task.
Is the Dbp not compatible with Gimp 3, if so - is there any similar plugin working in V3.0?
|
|
|
| resynthesizer |
|
Posted by: Gimper@PP - 03-31-2025, 09:26 AM - Forum: Extending the GIMP
- Replies (3)
|
 |
Hey, I use windows 11 + gimp 3.0.2 and i will install resynthesizer but i get it not install.
I get the last version of resynthsizer from github
I install it in preferences - map - plug-ins in gimp 3.0.2
What am i doing wrong?
|
|
|
|