| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,086
» Latest member: markbaker
» Forum threads: 7,792
» Forum posts: 42,320
Full Statistics
|
| Latest Threads |
GIMP won't start after fr...
Forum: Windows
Last Post: denzjos
Yesterday, 05:04 PM
» Replies: 2
» Views: 147
|
Display not keeping up wi...
Forum: Extending the GIMP
Last Post: nmw01223
01-26-2026, 06:39 PM
» Replies: 2
» Views: 214
|
Preferences/Folders shows...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: programmer_ceds
01-26-2026, 05:21 PM
» Replies: 6
» Views: 3,891
|
Perspective tool anchors.
Forum: Extending the GIMP
Last Post: denzjos
01-25-2026, 04:01 PM
» Replies: 7
» Views: 432
|
Safe Technique to Unlock ...
Forum: Watercooler
Last Post: denzjos
01-24-2026, 11:43 AM
» Replies: 2
» Views: 262
|
script-fu examples - batc...
Forum: Extending the GIMP
Last Post: rich2005
01-24-2026, 09:56 AM
» Replies: 0
» Views: 126
|
Writing a simple python p...
Forum: Scripting questions
Last Post: rich2005
01-23-2026, 04:12 PM
» Replies: 7
» Views: 443
|
How to get the full path ...
Forum: Extending the GIMP
Last Post: nmw01223
01-23-2026, 02:52 PM
» Replies: 10
» Views: 722
|
Gradient Tool
Forum: General questions
Last Post: james22
01-23-2026, 01:29 PM
» Replies: 4
» Views: 481
|
Basic Tutorial Example
Forum: Extending the GIMP
Last Post: nmw01223
01-22-2026, 02:52 PM
» Replies: 6
» Views: 1,580
|
|
|
| Display not keeping up with image changes in plug-in |
|
Posted by: nmw01223 - 01-25-2026, 05:42 PM - Forum: Extending the GIMP
- Replies (2)
|
 |
I am new to writing plug-ins - I've only done two. They are python on Gimp 3.0.6, running on Windows 11.
This one opens an image from a file and then assigns a display as follows:
Code:
infile = Gio.File.new_for_path(os.path.join(img_folder, img_name))
img = Gimp.file_load(Gimp.RunMode.INTERACTIVE, infile)
disp = Gimp.Display.new(img)
This all works, it shows up on the display.
Then, the display is resized, new values are calculated:
Code:
img.scale(new_width, new_height)
It is then written out to a JPEG, rescaled again down to thumbnail size, and written out again.
Then the image is cleaned up and the display deleted, which removes the image as well.
Code:
img.clean_all()
disp.delete()
Then the whole process starts again with a new file.
It all basically works fine, the JPEGs turn up OK. But, as the images are progressively shrunk, the display doesn't keep up. Basically, it's hard to describe or show, but just pieces of the shrunken images show up. I could if necessary try to video it.
But, if I run the commands one by one in the python console, no problem at all, it all looks fine. I assume this is because it is done slowly. The display is probably on a diffierent thread and isn't getting a look in when running at speed.
It isn't a show stopper, the files are fine, but it looks messy.
Is there a way round this, flushing all the display commands, for example,? Cannot find anything in Gimp.Display.
|
|
|
| Safe Technique to Unlock PST File on All Windows Versions |
|
Posted by: Brantanson01 - 01-24-2026, 05:06 AM - Forum: Watercooler
- Replies (2)
|
 |
I am unable to access my Outlook PST file because it is password-protected. I have tried opening it on various Windows versions, but the issue persists. Is there any safe and reliable technique to unlock a PST file on all Windows versions without risking data loss? Please suggest a practical solution.
|
|
|
| How to get the full path from a GFile |
|
Posted by: nmw01223 - 01-21-2026, 11:09 AM - Forum: Extending the GIMP
- Replies (10)
|
 |
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?
|
|
|
| affinity now free |
|
Posted by: denzjos - 01-21-2026, 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
|
|
|
| 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.
|
|
|
|