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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,073
» Latest member: phela063
» Forum threads: 7,787
» Forum posts: 42,298

Full Statistics

Latest Threads
Writing a simple python p...
Forum: Scripting questions
Last Post: LeonardCarlCampbell
54 minutes ago
» Replies: 6
» Views: 174
How to get the full path ...
Forum: Extending the GIMP
Last Post: nmw01223
1 hour ago
» Replies: 9
» Views: 258
Basic Tutorial Example
Forum: Extending the GIMP
Last Post: nmw01223
5 hours ago
» Replies: 6
» Views: 1,423
affinity now free
Forum: Other graphics software
Last Post: denzjos
Yesterday, 09:13 AM
» Replies: 0
» Views: 109
Where does python debug o...
Forum: Extending the GIMP
Last Post: nmw01223
01-20-2026, 11:37 PM
» Replies: 3
» Views: 232
'The Windows 11 Crisis' V...
Forum: Watercooler
Last Post: Tas_mania
01-20-2026, 08:59 PM
» Replies: 3
» Views: 289
Gradient Tool
Forum: General questions
Last Post: rich2005
01-20-2026, 09:07 AM
» Replies: 3
» Views: 203
GIMP Window Changes Size ...
Forum: Linux and other Unixen
Last Post: Jeremy_Ray
01-20-2026, 04:52 AM
» Replies: 5
» Views: 370
Python Scripting Help Nee...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: nmw01223
01-19-2026, 03:20 PM
» Replies: 2
» Views: 3,921
Gimp 3.0.6 appimage - 'bu...
Forum: Alternate Gimp packagings
Last Post: CtrlAltDel
01-19-2026, 10:14 AM
» Replies: 13
» Views: 777

 
Brick Writing a simple python plugin
Posted by: LeonardCarlCampbell - Today, 02:54 AM - Forum: Scripting questions - Replies (6)

Why is it so hard to create a plugin. I am trying to write a simple plugin to export the current image to a PNG file and then close the view. I am stuck at the save the image. Plugin attached.



Attached Files
.py   exportandclose.py (Size: 4.07 KB / Downloads: 9)
Print this item

  How to get the full path from a GFile
Posted by: nmw01223 - Yesterday, 11:09 AM - Forum: Extending the GIMP - Replies (9)

Development on Windows 11 using python 3 in Gimp 3.0.6.

I can find no way of getting the path from a GFile returned from the parameter setting dialog in a plugin.

A file parameter is created by

Code:
procedure.add_file_argument("src-folder",
                "Source folder",
                "Location of files to parse",
                Gimp.FileChooserAction.CREATE_FOLDER,
                False,
                None,
                GObject.ParamFlags.READWRITE)
The purpose of this is to allow browsing for a directory. It shows up in the plugin dialog as a directory browser, and a directory can be selected.

The parameter is then obtained after the dialog has run as
Code:
src_gfile = config.get_property("src-folder")
This has returned a GFile, not (unfortunately) a string path. The question is, how do I get the path out of the GFile? (I need it because I need to do some manipulations on it).

I've tried various things - src_gfile.get_path() produced nothing (though in another plugin I looked at it clearly did looking at the code, but that may have been on Linux, not Windows). I did find that if in the python console I create a GFile and get the path as
Code:
file = Gio.File.new_for_path("C:\\a\\b\\c")
file.get_path()
I do get the path as 'C:\a\b\c' - but not when it comes from the config as above.

src_gfile.get_uri() does produce the URI as a string, looking something line 'file:\\\C:\a\b\c'. Being a URI, it has the scheme on the from, and I can lose the 'file:\\\' by editing the string, but can't help feeling that is a bodge, certainly not cross platform.

I then found query_info(). So I tried
Code:
file_info = src_gfile.query_info("standard::*", Gio.FileQueryInfoFlags.NONE, None)
file_info.get_display_name()
I do get something back - but it's only the final leaf, ie 'c', not the full path and I can't find any method that does that.

So, basically, I can find no way of tidily get the full path as a string from a GFile. Can anyone help?

Print this item

  affinity now free
Posted by: denzjos - Yesterday, 09:13 AM - Forum: Other graphics software - No Replies

Canva has released version 3.0.3 of Affinity. The Affinity Suite previously consisted of the paid programs Photo, Designer, and Publisher, which were considered equivalent to Adobe's Photoshop, Illustrator, and InDesign. Starting with version 3.0.0, all applications have been consolidated into a single app, which is offered for free. A free Canva account is required to use the software. Some features, including generative AI, require a Canva Premium subscription. Affinity is available for Windows and macOS; the iOS version is still in development. 

https://www.affinity.studio/get-affinity

Print this item

  Where does python debug output go?
Posted by: nmw01223 - 01-20-2026, 05:36 PM - Forum: Extending the GIMP - Replies (3)

I'm trying to debug a python plugin on gimp 3.0.6 on Windows 11. I can get all the section of code to run in the python console, but nothing turns up in the plugin itself except the specified dialog.

I cannot find out where any message output goes. Is there any way of putting the equivalent of print() statements in the code and having it turn up on a console somewhere? I'm running it from the command line as gimp-3.0.exe --verbose.

Print this item

  Gradient Tool
Posted by: james22 - 01-19-2026, 11:24 PM - Forum: General questions - Replies (3)

Where is there some good information on how to create one gradient in one colour? I'm using V2.

James

Print this item

  GIMP Window Changes Size on Any Action
Posted by: Jeremy_Ray - 01-18-2026, 06:35 PM - Forum: Linux and other Unixen - Replies (5)

GIMP is 3.0.6, OS is Kubuntu 24.04

Here is how it is supposed to look, crammed into the screen space of my little Cintiq 12WX - 

[Image: gimp-fullscreen-setup.jpg]



Any action at all causes the main window to shrink down like this - 



[Image: gimp-shrunk-window.jpg]

What could be causing it to do this?  

Incidentally, I tried the option to merge the GIMP menu bar with the system menu bar.  I then turned it off, which didn't turn it off.  I then reset the preferences, which didn't turn it off.  I then uninstalled GIMP (using snap, which I installed GIMP with), shut down the computer, turned the computer back on and reinstalled GIMP.  That didn't restore the system menu bar either.  I don't know if that has anything to do with this problem or not. 

Incidentally, the rulers and status bar should be turned off, but they've stuck around anyway.

Print this item

  Gimp for MacOS 10.13.6
Posted by: Gerard118218 - 01-18-2026, 05:20 PM - Forum: Older Gimp versions (2.8, 2.6....) - Replies (2)

Hi,
I try to install gimp but it says that i need MacOS11 on my macbook, but I can't install MacOS11 because the computer is to old.
Is there a version of gimp who's compatible with MacOS 10.13.6 please ?
Thanks a lot

Print this item

  1st plugin attempt - save jpeg question
Posted by: nmw01223 - 01-18-2026, 02:47 PM - Forum: Extending the GIMP - No Replies

I am embarking on my 1st (python) plugin using GIMP 3. I'm a long term (basic) Photoshop user and have a lot of software design experience - but virtually no GIMP experience and zero python experience. So, it's a bit of a learning curve. 

What I'm doing is pretty simple, replicating something I used to do with Photoshop using VB (OLE) automation. Basically, a batch process - need to point to a source directory containing images of various types and resolutions (TIF, PSD, JPG etc), then to load them one by one, perform some basic (automatic) changes, and write them out one by one as JPEGs  to a different directory.

I've got the basic plugin shell going, with a dialog to select directories etc, define the automatic changes and so on, and it seems to work fine.

I think I can see how to get the source filenames using scandir() imported from os. Now looking at loading the files and writing the JPEGs. I assume I can use Gimp.file_load() to load an image.

But, when one writes a JPEG, there are usually some parameters - the JPEG level for file compression to start with. I cannot see any function for doing that. I found Gimp.file_save(run_mode, image, file, options), but it says options isn't used. I really don't want it to pop up a dialog to set these things.

So my basic questions are, is file_load() the right way to load an image, and how do I save a JPEG setting all necessary parameters programmatically?

Print this item

  Desk Top Icon for shortcut to GIMP
Posted by: Ronald - 01-18-2026, 05:00 AM - Forum: Windows - Replies (1)

Newbe here! Smile Could someone tell me how to install a GIMP shortcut on my Windows 11 desktop ? thanks!

Print this item

  Gimp 3.0.6 appimage - 'buntu 24.04 / Mint 22.3 only
Posted by: rich2005 - 01-16-2026, 06:06 PM - Forum: Alternate Gimp packagings - Replies (13)

A bit restricted but might be of use.

A cut down appimage that relies on system python 3 installation and qt5 (for the gmic plugin)

https://u.pcloud.link/publink/show?code=...sLD8CXBYh7    43 MB

and for the gimp_gmic_qt plugin https://u.pcloud.link/publink/show?code=...wBHYijirC7 5 MB Unzip and put the folder in your Gimp user profile plug-ins folder.

Print this item