Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

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.

Print this item

  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.

Print this item

  Changing Colors
Posted by: tomtom - 04-01-2025, 10:39 AM - Forum: General questions - Replies (5)

Dear Forum,
I have a picture with a secret message that you can only see if you look at it through a red filter.
I would like to change the image so that the message remains invisible to the naked eye, but becomes visible through a blue filter.
Is there a way to do this?
Thank you very much.



Attached Files Thumbnail(s)
   
Print this item

  RawTherapee plugin
Posted by: Cerebum - 04-01-2025, 10:04 AM - Forum: OSX - Replies (8)

Hi
New member, first post Smile I want to replace Adobe with Gimp and RawTherapee but I can't get them to talk to one another. What am I doing wrong? I am using a 2015 macbook running Monteray OS. Any help would be gratefully received but please bear in mind that I am not massively tech savvy. Thanks Smile



Attached Files Thumbnail(s)
   
Print this item

  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.

Print this item

  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

Print this item

  Gimp 3.0.0 (and newer) Copying layers/images and pasting and Alignment Tool
Posted by: Imc7r - 03-31-2025, 05:26 PM - Forum: Gimp 2.99 & Gimp 3.0 - No Replies

3 points I noticed

1) Pasting: 'Paste as new layer' in Gimp 2.10 is now called just 'Paste'

'Paste' in 2.10 Ctr+V is now called 'Paste As Floating Data' - this is to have a floating selection from the pasted layer like before.
no bugs with this just the difference, defaults to pasting as new layer unless Ctr+V is changed to paste as floating like I did

2) If you have Layer 1 that is 1000x1000 for example and a top layer 2 that is 256x256 but you did not make the top layer 'Layer to Image size'. You just want to copy the top layer 2 to clipboard or another new file or image.

I noticed that Ctrl+C to copy that layer copies it as if you merged layer 2 down to layer 1. In 2.10 you just copy the upper layer and it pastes with the border size of the layer not with the borders of the lower layer that is bigger. Is this intended

https://gitlab.gnome.org/-/project/1848/...3ee8/1.jpg

3) The Align tool works a bit differently - If you want to move for example the black image have to untick, choose position then tick, so it doesn't align halfway off the canvas or border of the lower image/BG

   

Print this item

  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?

Print this item

  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?

Print this item

  Converting Gimp Files to JPEG
Posted by: scave - 03-30-2025, 10:11 PM - Forum: General questions - Replies (3)

I have many photos stored on my hard drive. They were saved as JPEG. Somehow I clicked something in Gimp I think, that converted them all to a Gimp filea.  What can I do to convert the photos on my hard drive back to JPEG?  In Gimp they show as JPEG.   Is there a one click thing that will convert them (one's on hard drive) back to JPEG?  Also, I am using 3.02(revision 1). That was not a choice I could select when I registered.
Thank you,
Scave

Computer Screen:
   

Gimp Screen:
   

Print this item