Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,628
» Latest member: LaurSmit
» Forum threads: 7,176
» Forum posts: 39,209
Full Statistics
|
Latest Threads |
gradients semi transparen...
Forum: General questions
Last Post: Ulodesk
4 hours ago
» Replies: 3
» Views: 142
|
Multiple install paths in...
Forum: Windows
Last Post: LateJunction
Today, 08:38 AM
» Replies: 2
» Views: 166
|
Information about GAP
Forum: Extending the GIMP
Last Post: ElMastro
Today, 01:51 AM
» Replies: 4
» Views: 485
|
Copy color effect to othe...
Forum: General questions
Last Post: PBog
02-20-2025, 12:56 PM
» Replies: 6
» Views: 335
|
Some questions about brus...
Forum: General questions
Last Post: rich2005
02-20-2025, 09:05 AM
» Replies: 2
» Views: 172
|
flowery cliff
Forum: Gallery
Last Post: MJ Barmish
02-19-2025, 01:29 PM
» Replies: 2
» Views: 172
|
How can I run Flatpak ver...
Forum: Linux and other Unixen
Last Post: Ofnuts
02-18-2025, 11:27 PM
» Replies: 3
» Views: 195
|
Export all opened images ...
Forum: Extending the GIMP
Last Post: Krikor
02-18-2025, 09:18 PM
» Replies: 8
» Views: 5,069
|
Arrow Script
Forum: Extending the GIMP
Last Post: programmer_ceds
02-18-2025, 04:51 PM
» Replies: 122
» Views: 152,404
|
Turn photo negative to po...
Forum: Tutorials and tips
Last Post: programmer_ceds
02-18-2025, 11:11 AM
» Replies: 4
» Views: 12,166
|
|
|
script |
Posted by: 1mike - 11-23-2024, 04:49 PM - Forum: Extending the GIMP
- Replies (2)
|
 |
Is there a script that runs auto white balance, stretch contrast and stretch contrast HSV, one after the other, with the default settings of each?
If not, how would I write one, I'm not a programmer.
|
|
|
New user - layers question |
Posted by: Allen - 11-21-2024, 07:52 PM - Forum: General questions
- Replies (5)
|
 |
Hi all. I am trying to do a photo collage (for a jigsaw) with one photo as the main background and then several others layered in and bordered which I will then eventually all flatten image for the final step. However when I copy in the smaller images as 'new layer', I can't seem to add a border to them even though the layer is selected. It adds the border to the main base layer photo not the one I have selected. I can rotate the smaller layers, soft focus etc, so they are definitely selected, it just seems to be the border than I can't add. I know I somehow managed to do this for a Christmas puzzle last year but I now can't figure it out. Help please!
|
|
|
3.0 Plugin/Script Repository? |
Posted by: CtrlAltDel - 11-21-2024, 08:16 AM - Forum: Extending the GIMP
- Replies (5)
|
 |
As everyone is reworking/tweaking/creating plugins and scripts that function with 3.0, will there be a thread here dedicated to ones that have been successfully utilized with 3.0?
We all have a ton of plugins and scripts that need to function with 3.0, I would assume, and it would be insanity to start requesting specific ones and expect any prompt assistance with the changeover going on.
Will there be a single thread, maybe, where posters can follow a link for a specific listed plugin/script or maybe just download it from here after someone has been kind enough to list them here, whichever ones they may be?
For example, everyone could just come and check out the thread to see if anyone has converted/created/updated their favorite plugins/scripts without having to pressure anyone or aggravate anyone by asking.
|
|
|
_gimp_procedure_run_array: no return values, shouldn't happen |
Posted by: JustJamie - 11-21-2024, 03:17 AM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (3)
|
 |
I recently installed Gimp 3.0.0-RC1 using the windows installer (on Win 11 - 64-Bit).
I am new to plug-in development, having only written one plug-in for Gimp 2.10.38 just last week. The 2.10 plug in works as I expect it to. In learning plug-in development, I discovered 3.0.0-RC1 and decided to install it and convert my plug-in to work with 3.0. To start, I attempted to create a simple, "Hello, World!" plug-in. Currently I have:
Code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
#
# gimp-tutorial-plug-in.py
# sample plug-in to illustrate the Python plug-in writing tutorial
# Copyright (C) 2023 Jacob Boerema
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys
import gi
gi.require_version('Gimp','3.0')
from gi.repository import Gimp
gi.require_version('GimpUi','3.0')
from gi.repository import GimpUi
from gi.repository import GLib
class AnimateDrawableOffsets(Gimp.PlugIn):
def __init__(self):
super().__init__()
self.test_cfg = None
self.log = None
def do_query_procedures(self):
return [ 'animate-drawable-offsets' ]
def do_set_i18n (self, name):
return (False, None, None)
def do_create_procedure(self,name):
procedure = Gimp.ImageProcedure.new(self, name, Gimp.PDBProcType.PLUGIN,self.run,None)
procedure.set_image_types("*")
procedure.set_sensitivity_mask(Gimp.ProcedureSensitivityMask.DRAWABLES | Gimp.ProcedureSensitivityMask.DRAWABLE)
procedure.set_menu_label("Animate Drawable Offsets...")
procedure.add_menu_path('<Image>/Filters/Animation/')
procedure.set_documentation("Animate Drawable Offsets","Animates offsets of active drawable in new image according to user defined settings.",name)
procedure.set_attribution("Jamie Miller","Jamie Miller","2024")
return procedure
def run(self, procedure, run_mode, image, n_drawables, drawables, config, run_data):
# function code goes here...
Gimp.message("Hello world!")
return procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, GLib.Error())
Gimp.main(AnimateDrawableOffsets.__gtype__, sys.argv)
I can select the plug in from the menu just fine, but I am not seeing output in the Error Console (as I think that is where Gimp.message() outputs the message) and I am seeing the following error in the terminal window:
Code:
(animate-drawable-offsets.py:35024): LibGimp-WARNING **: 20:54:36.115: _gimp_procedure_run_array: no return values, shouldn't happen
C:\Users\dontl\AppData\Roaming\GIMP\3.0\plug-ins\animate-drawable-offsets\animate-drawable-offsets.py:62: Warning: g_error_new: assertion 'domain != 0' failed
Gimp.main(AnimateDrawableOffsets.__gtype__, sys.argv)
I have tried google the error messages but only found one thread regarding foggify that didn't seem to provide a relevant fix. I also read the thread regarding the "group-selected-by" plug-in and followed some suggestions in that thread to update my code but I am still seeing the error....
Any help to resolve this would be great....
(11-21-2024, 03:17 AM)JustJamie Wrote: UPDATED:
Code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# GIMP - The GNU Image Manipulation Program
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
#
# gimp-tutorial-plug-in.py
# sample plug-in to illustrate the Python plug-in writing tutorial
# Copyright (C) 2023 Jacob Boerema
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys
import gi
gi.require_version('Gimp','3.0')
from gi.repository import Gimp
gi.require_version('GimpUi','3.0')
from gi.repository import GimpUi
from gi.repository import GLib
class AnimateDrawableOffsets(Gimp.PlugIn):
def __init__(self):
super().__init__()
self.test_cfg = None
self.log = None
def do_query_procedures(self):
return [ 'animate-drawable-offsets' ]
def do_set_i18n (self, name):
return (False, None, None)
def do_create_procedure(self,name):
procedure = Gimp.ImageProcedure.new(self, name, Gimp.PDBProcType.PLUGIN,self.run,None)
procedure.set_image_types("*")
procedure.set_sensitivity_mask(Gimp.ProcedureSensitivityMask.DRAWABLES | Gimp.ProcedureSensitivityMask.DRAWABLE)
procedure.set_menu_label("Animate Drawable Offsets...")
procedure.add_menu_path('<Image>/Filters/Animation/')
procedure.set_documentation("Animate Drawable Offsets","Animates offsets of active drawable in new image according to user defined settings.",name)
procedure.set_attribution("Jamie Miller","Jamie Miller","2024")
return procedure
##UPDATED function definition to remove 'run_data' parameter
def run(self, procedure, run_mode, image, n_drawables, drawables, config):
# function code goes here...
Gimp.message("Hello world!")
return procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, GLib.Error())
Gimp.main(AnimateDrawableOffsets.__gtype__, sys.argv)
OK.....so, after re-reading the error message, I noticed it also included the line, " missing 1 required positional argument: 'run_data'"...removing this parameter from the definition for the run function allows the plug-in to operate and I can now see the "Hello, World!" message in the error console.....
I do not know what this parameter is for, or how removing it will affect the plug-in development. For now, I will keep researching what this parameter is used for and how it becomes populated with run_data.
|
|
|
Volunteers needed to run a select-polygon test |
Posted by: gasMask - 11-19-2024, 01:08 AM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (7)
|
 |
Windows 10
Gimp 3.0.0 RC1
Hi,
I'm looking for volunteer(s) to run this test plug-in. The plug-in creates an image and selects a square polygon at the topleft of the image.
At least that what's it's supposed to do. However, the plug-in will crash while failing to select the polygon. The failure appears to be in the procedure: 'gimp-image-select-polygon'.
Code:
procedure = Gimp.get_pdb().lookup_procedure(
'gimp-image-select-polygon'
)
config = procedure.create_config()
config.set_property('image', image)
config.set_property('operation', Gimp.ChannelOps.REPLACE)
# Define a square of four points
# positioned at the topleft of the image.
config.set_property(
'segs', (0., 0., 250., 0., 250., 250., 250., 0.)
)
procedure.run(config)
I'm willing to report the bug to Gimp.org, but I believe it's a good idea to have some proof before doing so. There's also the possibility that I'm doing something wrong, and someone could point that out.
To install the plug-in copy the folder into a Gimp 3 plug-in folder. After Gimp is restarted, the plug-in will appear on the Gimp window menu under "Development".
Thanks for your attention.
SelectPolygonTest.zip (Size: 1.35 KB / Downloads: 47)
|
|
|
|