| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,131
» Latest member: undressai
» Forum threads: 7,810
» Forum posts: 42,421
Full Statistics
|
| Latest Threads |
Color picker doesn't refl...
Forum: General questions
Last Post: mmhmjanssen
3 hours ago
» Replies: 2
» Views: 123
|
How to change mouse wheel...
Forum: General questions
Last Post: Tas_mania
5 hours ago
» Replies: 6
» Views: 14,915
|
Why is the Move tool movi...
Forum: Tutorials and tips
Last Post: kkt
5 hours ago
» Replies: 1
» Views: 4,384
|
New contact sheet plugin ...
Forum: Extending the GIMP
Last Post: chuckhenrich
Yesterday, 02:00 PM
» Replies: 0
» Views: 78
|
Wavelet-decompose doing m...
Forum: General questions
Last Post: rich2005
02-16-2026, 08:33 AM
» Replies: 8
» Views: 4,920
|
Can't load RAW files
Forum: General questions
Last Post: rich2005
02-15-2026, 10:45 AM
» Replies: 4
» Views: 269
|
A selection of old spoof-...
Forum: Gallery
Last Post: TumbleRocks
02-14-2026, 09:30 PM
» Replies: 7
» Views: 8,484
|
Drawing Tablet for GIMP -...
Forum: General questions
Last Post: rich2005
02-14-2026, 09:53 AM
» Replies: 1
» Views: 214
|
Chlorophyll and Colour ch...
Forum: General questions
Last Post: rich2005
02-13-2026, 04:04 PM
» Replies: 1
» Views: 200
|
file-glob always returns ...
Forum: Scripting questions
Last Post: Jts-gimp
02-13-2026, 12:17 PM
» Replies: 7
» Views: 2,718
|
|
|
Python "no return values, shouldn't happen" |
|
Posted by: Nathan - 08-18-2025, 09:55 PM - Forum: Scripting questions
- Replies (6)
|
 |
I'm creating a python script to load a custom image format (.PRS with the magic string "YB"). But I'm having trouble getting even a skeleton file loading plugin to work. This is what I've been able to reduce my code down to:
Code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gi
gi.require_version('Gimp', '3.0')
from gi.repository import Gimp, GObject
import sys
load_proc = "file-prs-load"
plugin_binary = "file-prs"
class PrsLoader(Gimp.PlugIn):
def do_query_procedures(self):
return [load_proc]
def do_create_procedure(self, name):
procedure = None
if name == load_proc:
procedure = Gimp.LoadProcedure.new(self, name,
Gimp.PDBProcType.PLUGIN,
self.PrsLoad, None)
procedure.set_menu_label("PRS image")
procedure.set_attribution("Nathan", "Nathan", "2025")
procedure.set_menu_label("PRS image")
procedure.set_documentation("Loads files of PRS file format",
"Loads files of PRS file format",
None)
procedure.set_mime_types("image/prs")
procedure.set_extensions("prs")
procedure.set_magics("0,string,YB")
return procedure
def PrsLoad(self, procedure, run_mode, file, metadata, flags, config, run_data):
print("PrsLoad called")
#Return dummy image for now
image = Gimp.Image.new(100, 100, Gimp.ImageBaseType.RGB)
return_vals = procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, None)
val = GObject.Value(Gimp.Image.__gtype__, image)
return_vals.append(val)
return return_vals
Gimp.main(PrsLoader.__gtype__, sys.argv)
When I try to open a PRS image file, I get the following errors:
Code:
GIMP Message
Opening '/home/nathan/Pictures/tree2b.prs' failed:
PRS image plug-in could not open image
Code:
[nathan@TARDIS file-prs]$ gimp
set device 'Wayland Pointer' to mode: disabled
[file-prs-load] The catalog directory does not exist: /home/nathan/.config/GIMP/3.0/plug-ins/file-prs/locale
[file-prs-load] Override method set_i18n() for the plug-in to customize or disable localization.
[file-prs-load] Localization disabled
env: ‘gjs’: No such file or directory
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): unexpected EOF
[file-prs-load] The catalog directory does not exist: /home/nathan/.config/GIMP/3.0/plug-ins/file-prs/locale
[file-prs-load] Override method set_i18n() for the plug-in to customize or disable localization.
[file-prs-load] Localization disabled
[file-prs-load] The catalog directory does not exist: /home/nathan/.config/GIMP/3.0/plug-ins/file-prs/locale
[file-prs-load] Override method set_i18n() for the plug-in to customize or disable localization.
[file-prs-load] Localization disabled
PrsLoad called
(file-prs.py:2595385): LibGimp-WARNING **: 17:46:44.730: _gimp_procedure_run_array: no return values, shouldn't happen
/home/nathan/.config/GIMP/3.0/plug-ins/file-prs/file-prs.py:46: Warning: g_error_new: assertion 'domain != 0' failed
Gimp.main(PrsLoader.__gtype__, sys.argv)
INFO: a stray image seems to have been left around by a plug-in: "[Untitled]"[nathan@TARDIS file-prs]$
I'm not too worried about the localization messages at this time.
|
|
|
| font samples |
|
Posted by: skunkworks - 08-15-2025, 12:02 AM - Forum: General questions
- Replies (6)
|
 |
Is there a sample file with many (or all) default fonts I can look at? For example, the same phrase--Hello, World!--is rendered in a number of fonts?
|
|
|
| Ways to convert video files to .AVI without loss of quality? |
|
Posted by: manojadword95 - 08-14-2025, 07:47 AM - Forum: Watercooler
- Replies (1)
|
 |
Looking for the best video converter to convert an AVI file to the MP4 format.
I'm facing an issue of compatibility with AVI files, and now I want them to be converted into the MP4 format so that the problem gets solved. plz recommend me an effective converter.
Earlier, I used to use (link to expensive software removed), which is good, but I need a new software.
|
|
|
| Turned image does not export |
|
Posted by: Falu - 08-12-2025, 03:02 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (4)
|
 |
Hi,
Just installed Gimp 3.0.4.
Opened an image, which I turned horizontally. Then exported it to my desktop as jpg. Unfortunately the image isn't turned horizontally. The original image is exported.
What did I do wrong?
Thanks in advance and kr, Leo.
|
|
|
| Freezes on PNG Export |
|
Posted by: Hellmark - 08-11-2025, 05:34 PM - Forum: OSX
- Replies (1)
|
 |
When ever I am attempting to do a PNG export on my M4 Mac mini with Sequoia, instead of popping up the PNG export options dialog, it just freezes. I can't interact with anything. On the toolbar will have a PNG-export listed, but no windows for it are available.
|
|
|
| different shortcuts.. |
|
Posted by: jgimpval83 - 08-11-2025, 05:02 PM - Forum: General questions
- Replies (1)
|
 |
Hello fellow Gimp-Users.
I've been using Gimp for a couple years now.
As I got used to it, I also got used to the workflow and the shortcuts.
I just downloaded version 3 and to my surprise many shortcuts don't work at all (Ctrl+C/Ctrl+V/Ctrl+Zoom/Ctrl+H).
Also I was used to hit Ctrl+S to scale the current selection. Now it brings up the Shear tool and Ctrl+T seems to be for scaling.
I don't know what the developers were thinking on this release and why it would be a good idea to change shortcuts, people were used to for years. (vibe coding?)
However, in 2.8 everything works fine. My system is a clean W10 with more than enough performance.
Really dissapointed with this release. I know I can change my shortcuts manually, but why did they change them in first place?
Anyone else facing the bugs of some not working at all?
|
|
|
|