| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Version Issue
Forum: General questions
Last Post: rich2005
6 hours ago
» Replies: 1
» Views: 61
|
GIMP 3 Python Enums: Defi...
Forum: Extending the GIMP
Last Post: MrsP-from-C
8 hours ago
» Replies: 6
» Views: 160
|
Odd problem with GIMP 3.0...
Forum: General questions
Last Post: cjsmall
02-22-2026, 08:09 PM
» Replies: 4
» Views: 316
|
Anyone working on video g...
Forum: Watercooler
Last Post: connag
02-22-2026, 07:48 PM
» Replies: 3
» Views: 2,035
|
remove graffiti
Forum: Other graphics software
Last Post: denzjos
02-22-2026, 08:04 AM
» Replies: 2
» Views: 176
|
Merging a still image and...
Forum: General questions
Last Post: rich2005
02-20-2026, 08:35 AM
» Replies: 5
» Views: 399
|
Color picker doesn't refl...
Forum: General questions
Last Post: Scallact
02-19-2026, 06:03 PM
» Replies: 4
» Views: 454
|
Resize image too blurry (...
Forum: General questions
Last Post: rich2005
02-19-2026, 11:30 AM
» Replies: 6
» Views: 424
|
How to change mouse wheel...
Forum: General questions
Last Post: zeuspaul
02-19-2026, 07:56 AM
» Replies: 7
» Views: 15,283
|
Why is the Move tool movi...
Forum: Tutorials and tips
Last Post: kkt
02-18-2026, 09:11 PM
» Replies: 1
» Views: 4,525
|
|
|
| Converseen batch image processor |
|
Posted by: denzjos - 03-30-2025, 07:09 AM - Forum: Other graphics software
- No Replies
|
 |
Converseen is a free cross-platform batch image processor for Windows, Linux, macOS, FreeBSD, and other operating systems. It allows you to convert, resize, rotate, and flip an infinite number of images with a single mouse click. Moreover, Converseen can convert an entire PDF document into a set of images with your preferred characteristics. You can choose from over 100+ formats, set the size, resolution, and the filename.
https://converseen.fasterland.net
|
|
|
| Python Scripting Help Needed Gimp 3 |
|
Posted by: silenuznowan - 03-29-2025, 05:37 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (2)
|
 |
I have some simple batch scripts for version 2 that I am trying to convert to work with version 3, which I really like working with.
Anyway one simple script was this:
Code:
import os
import gimpfu
def convert(filename):
img = pdb.gimp_file_load(filename, filename)
new_name = filename.rsplit(".",1)[0] + ".png"
layer = pdb.gimp_image_merge_visible_layers(img, 1)
pdb.gimp_file_save(img, layer, new_name, new_name)
pdb.gimp_image_delete(img)
savepath = ('${DEST}' + '/' + "$1" )
if os.path.exists(savepath):
print('the folder exists')
else:
os.makedirs(savepath)
os.rename(new_name, savepath + "/" + new_name)
from glob import glob
for filename in glob("*.xcf"):
print(filename)
convert(filename)
pdb.gimp_quit(1)
I'm now trying to do the equivalent with Gimp 3 but am unable to even load the file.
In Gimp 2 you could load a file with the one line:
Code:
img = pdb.gimp_file_load(filename, filename)
So now this is replaced with:
Code:
def load_file(filename):
procedure = Gimp.get_pdb().lookup_procedure('gimp-file-load');
config = procedure.create_config();
config.set_property('run-mode', Gimp.RunMode.NONINTERACTIVE);
config.set_property('file', filename);
result = procedure.run(config);
success = result.index(0);
image = result.index(1)
return image;
def convert(filename):
img = load_file(filename)
Only this results in the following error
Quote:TypeError: could not convert 'interior-starship-doors.xcf' to type 'GFile' when setting property 'GimpProcedureConfig-gimp-file-load.file'
So it looks like instead of expecting a filename for file the new python api expects an object of type GFile to be passed, and I was wondering how I do this?
Thanks in advance.
Update: I managed to figure things out using Gio so my new load_file function looks like this:
Code:
def load_file(filename):
file = Gio.File.new_for_path(filename)
procedure = Gimp.get_pdb().lookup_procedure('gimp-file-load');
config = procedure.create_config();
config.set_property('run-mode', Gimp.RunMode.NONINTERACTIVE);
config.set_property('file', file);
result = procedure.run(config);
success = result.index(0);
image = result.index(1)
return image;
While this works, I'm wondering if I'm also supposed to dispose of the Gio.File object, and if so how do I do that?
Thanks in advance. Also if there's any interest I can post the whole version of the new script.
|
|
|
| Error while parsing |
|
Posted by: rdoty - 03-29-2025, 04:38 PM - Forum: General questions
- Replies (1)
|
 |
When I load Gimp 3.0 I get this message "Error while parsing 'C:\Users\xxxx\AppData\Roaming\GIMP\3.0\devicerc' in line 9: invalid value 'a' for token select-criterion
Is this a problem and how do I correct? Also, could this relate to some of the problems I had with a previous thread, difficulty removing jpeg background?
|
|
|
| GIMP 3.0 View and Color menu length |
|
Posted by: KenS. - 03-29-2025, 01:40 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (1)
|
 |
Hi there, if I click on a menu, and then move either left of right, the menus dropdown so you can see the listings, but both the the View and Color menus are long, so they will not close when you move the cursor either left or right, with the View menu, you can click on the up arrow at the top, to clear the menu, but the Color menu doesn't have a arrow at the top that I can see, I have to move the cursor off to one side and click to clear the menu. Would like to see both menus extend downward, so the menu title isn't hidden. Take care.
|
|
|
| Gimp does not recognize Darktable or RawTherapee |
|
Posted by: KnowNothing - 03-28-2025, 08:39 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (2)
|
 |
I am running a laptop with Ubuntu and when Gimp updated it quit working with Darktable. I have subsequently uninstalled all three programs and reinstalled them in various orders and Gimp will not open Raw files and does not show either Darktable or RawTherapee as import options. Also does not appear to allow a person to enter either program as an import option. I am not a programmer (I can barely take pictures), and virtually every web search just says install the programs and they will work together. NOT TRUE. Most of those searches don't even relate to the new version of Gimp. What is most perplexing is that My previous setup was working perfectly and the update to Gimp 3 was automatic but dropped any functionality with Darktable.
|
|
|
| Overwrite function defaults |
|
Posted by: andytua - 03-28-2025, 04:08 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (1)
|
 |
Hello. On my previous PC, i was on GIMP 2.10
using File---Overwrite would pop up a dialog box with Export Image as JPEG settings
Convenient way to change quality of original image
With Gimp 3.0, using Overwrite simply overwrites the file and offers no dialog box
I have tried everything I can think of to get the dialog box to pop up but i got nothing
Maybe there is a better alternative I am unaware of
thank you!!
|
|
|
| Gimp 3 plugin sprites/objects/islands to layers, handy for spritesheets! |
|
Posted by: joeyeroq - 03-28-2025, 12:26 PM - Forum: Extending the GIMP
- No Replies
|
 |
There are other plugins that do the same like Ofnuts "ofn-extract-objects" and G'MIC-Qt "Extract Objects" (install "G'MIC-Qt plugin", Plugin > Filters > G'MIC-Qt... > Arrays and Tyles > Extract Objects), but I wanted to learn some GIMP 3 Python scripting so made this.
How to install in Windows (I don't have Linux or Mac):
Go to GIMP 3 plugins folder by typing in the File Explorer's address bar:
Code:
%appdata%\GIMP\3.0\plug-ins
and extract plug-in-joey-py3-sprites-to-layers.zip file in there, the script path should look something like this:
C:\Users\<USER_NAME>\AppData\Roaming\GIMP\3.0\plug-ins\plug-in-joey-py3-sprites-to-layers\plug-in-joey-py3-sprites-to-layers.py
Usage:
Open GIMP 3, open an image, select the layer you want your sprites/objects/islands extracted from, than Layer > Sprites to layers.
plug-in-joey-py3-sprites-to-layers.zip (Size: 3.29 KB / Downloads: 265)
|
|
|
|