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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,964
» Latest member: TyronVeday
» Forum threads: 7,716
» Forum posts: 41,953

Full Statistics

Latest Threads
Gimp 2.10.30 Text alignme...
Forum: General questions
Last Post: guest273
2 hours ago
» Replies: 0
» Views: 52
Can the gradient tool be ...
Forum: General questions
Last Post: ESH
3 hours ago
» Replies: 2
» Views: 129
Gimp 3 path tool auto con...
Forum: General questions
Last Post: CmykStudent
Today, 02:01 AM
» Replies: 9
» Views: 608
plugin-py3-export-all
Forum: Extending the GIMP
Last Post: CowboyJoe
Yesterday, 06:38 AM
» Replies: 0
» Views: 122
Numerous issues with 3.0+...
Forum: General questions
Last Post: rich2005
11-24-2025, 09:51 PM
» Replies: 2
» Views: 190
How to transform a layer ...
Forum: General questions
Last Post: stacash
11-24-2025, 08:47 PM
» Replies: 10
» Views: 711
How to make contours in G...
Forum: General questions
Last Post: denzjos
11-23-2025, 07:10 PM
» Replies: 2
» Views: 221
Has anyone tried getting ...
Forum: Extending the GIMP
Last Post: vitforlinux
11-22-2025, 04:32 PM
» Replies: 2
» Views: 323
What exactly tutorials ar...
Forum: General questions
Last Post: sallyanne
11-22-2025, 06:44 AM
» Replies: 6
» Views: 682
Gimp 3.0.6 Python plug-in...
Forum: Scripting questions
Last Post: Scallact
11-21-2025, 09:15 PM
» Replies: 8
» Views: 441

 
  Gimp 2.10 installation problem windows 11
Posted by: Henrymw - 08-19-2025, 07:08 AM - Forum: Installation and usage - Replies (3)

I have installed Gimp 2.10 on my Windows 11 on my laptop. 
I have installed several times, including once when I temporarily shutting down my avg system.
However I never have been able to get a 'complete' installation.
I can find this since when using Edit->Preferences->Folders I do not see all the folders that should be there.
I believe this problem is preventing things such as effective messages from the python 2.7 scripts I am working on.
How can I get a complete installation?

Print this item

Exclamation 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.

Print this item

  Vector Layers - Coming Soon
Posted by: rich2005 - 08-18-2025, 11:20 AM - Forum: Watercooler - Replies (4)

In the latest Gimp 3.1.3 (appimage) are vector layers, so they will be in Gimp 3.2 when it comes along.

You can make your own path and apply a fill and stroke which remains editable. You can apply transformations - just remember to work in paths mode. 

Path Tool Options looks like this:

   


and me bumbling about https://i.imgur.com/TyPfJ0p.mp4

Print this item

Question Need help Converting an Images Colors to the closest one in a palette
Posted by: Aminivibrio - 08-16-2025, 04:43 PM - Forum: General questions - Replies (8)

So I am developing a video game which uses a built-in color palette similar to old MS-DOS games. Because of this, I need a program that will convert all the colors in an image to the closest color in a given color palette. Unfortunately, my game's color palette has more than 256 colors (around 2000), so I can't just convert all the images I want to turn into sprites to indexed mode. The best method I've found so far is to use the Select by Color Tool and manually convert every color in the image to match my palette. Does anyone know a way to convert images to a color palette instantly besides indexed mode?

Print this item

  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?

Print this item

Exclamation Constant Crashing
Posted by: shadowman247 - 08-14-2025, 09:24 PM - Forum: General questions - Replies (1)

I have linked the crash report. Essentially, every time I try to make and edit text, the whole app just crashes. There doesn't seem to be any rhyme or reason to it either. Sometimes it happens when I am changing the window size, i.e., going full screen, and other times it works and then crashes when picking a color or changing a text setting. Super random. Any help would be great! I put the crash report in a Google Doc as the text limit had been reached. Any help would be awesome. Thanks!


https://docs.google.com/document/d/1RVtN...sp=sharing

Print this item

  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.

Print this item

  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.

Print this item

  pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows
Posted by: Scallact - 08-12-2025, 01:47 PM - Forum: Extending the GIMP - Replies (13)

This is my proposal for a plugin dedicated to a much requested feature in GIMP 3.0: stroke paths with an arrowhead at the end.
It has one genuine feature, compared to other similar plugins (AFAIK): the body path is shortened to ensure that the arrow tip ends up reasonably well aligned with the path's last point.
This apparently trivial feature actually hid a rabbit hole. The requirement of cutting a Bezier curve at a specific point send me through a deep dive into Bezier curves theory and algorithms. :-)

The image below shows a selection of arrowheads styles available:

   

The documentation is here, and you can download the current version here.

Make sure you place the folder named "pl_stroke_arrows" in the GIMP plug-ins folder inside your profile.
Depending on your operating system, make the file "pl_stroke_arrows.py" inside this folder executable.
The plugin should appear at the bottom of the "Edit" menu.

The plugin has been tested, but some new bugs will probably happen. Please report here, preferably with a downloadable .xcf file to exemplify the case.

Print this item

  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.

Print this item