Welcome, Guest |
You have to register before you can post on our site.
|
|
|
Migrating Python plug-in from Gimp 2.10 |
Posted by: nerudaj - 05-27-2025, 08:30 PM - Forum: Scripting questions
- Replies (2)
|
 |
Hi,
I'd appreciate some help with the migration of one of my Python-based Gimp 2.10 plugins to Gimp 3. I've already managed to write two unrelated plugins that do some import/export shenanigans so I am able to add new plugin, debug it somewhat etc.
However, I have three issues:
1) It seems that not all Procedure::add_xy_argument work or at least they don't behave as intended. My understanding is that calling:
Code:
dialog = GimpUi.ProcedureDialog.new(procedure, config, plug_in_name)
dialog.fill()
will render all arguments that I added to a procedure. That doesn't seem to happen. For example, uint argument doesn't show up while int argument does. Is it that some arguments require extra leg work during the initialization of ProcedureDialog to show up?
2) It seems that I am not able to simply add widgets to ProcedureDialog, I can only refer to id's added to the procedure during do_create_procedure. Therefore, I can't for example add buttons with callback actions or a dropdown that would list all layer groups but not regular layers. Is there any workaround for this?
3) I didn't find a way to disable a bunch of default buttons that render for each plugin, namely these:
Is it possible to hide all of these?
Now why am I asking? Here's a plugin demo I have for 2.10:
![[Image: tile_preview.gif]](https://raw.githubusercontent.com/nerudaj/gimp-pixel-art-utils/main/docs/tile_preview.gif)
As you can see, this plugin is only a preview with its own rendering canvas to which I copy layers selected in the dropdown menus. I am attempting to port it to Gimp3, but I don't know how to interface with Gtk3 directly so I can add whatever widgets I need during plugin run and not during initialization (not to mention I can't add buttons). Source for the 2.10 plugin is here: gimp-pixel-art-utils/tile-preview/tile-preview.py at main · nerudaj/gimp-pixel-art-utils
Any ideas how to achieve the same result in Gimp3?
|
|
|
Not sure if it is a bug... |
Posted by: sallyanne - 05-26-2025, 08:46 AM - Forum: Gimp 2.99 & Gimp 3.0
- No Replies
|
 |
... or a new feature!
I have the latest 3.0.4 vs of gimp. What happened to the scroll bars, horizontal? They were there in the other vs 3's. I haven't had to do anything to make them appear usually. Do I have to this time?
I also do not have the status menu bar at the bottom - where I can change the view size etc. Even the layers icons in the dialog are missing - could be my whole bottom is missing. I cannot check now.
EDIT:
oops, now I have no menu bars at all. I did click on merge menu bars earlier. Only way I can shut gimp down is do it from the icon that shows up in my task bar. If that is the case how can I undo it as I cannot get to edit > preferences now.
Closed everything down and reopened and its all there now
|
|
|
Very beginner question - image resize |
Posted by: nmw01223 - 05-24-2025, 08:49 AM - Forum: General questions
- Replies (1)
|
 |
I've just started using GIMP (2.10.14) after using an old copy of Photoshop for years (decades). So, my general knowledge of image editing is OK, but my knowledge of GIMP - zero.
So, very dumb question, want to scale the pixels/inch of an image. I've got a scanned image (B/W, TIF) that is very long and thin - one of those old school pictures taken with a panning camera. It was scanned and stitched together at 1600ppi, which is really way too big for my needs. So, want to down convert it to 600ppi. Should be simple ... .
So, started GIMP, dragged the image in, and it loads OK. Go to scale image and it shows the image as roughly 58000x8000 pixels at 1600ppi X and Y. X and Y are linked, so change X to 600ppi, and, yes, Y changes to 600ppi. , Click scale, so far so good.
Export as TIF, writes OK. But, load it up again, and it still says 58000x8000, 1600ppi. Same size file, too.
So, tried again, but this time just saved it as its native format, and reloaded it. This time it said 600ppi - good, but still listed the overall resolution as 58000x8000 - which it clearly wasn't or there would have been a lot of blank space.
Confused, should be very simple, what am I doing wrong?
|
|
|
GIMP problems (on Linux Mint) |
Posted by: FranzBias - 05-24-2025, 12:29 AM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (8)
|
 |
Hello everyone,
I'm new to the forum.
I'm having some problems with GIMP 3.0.4 (Flatpak) installed today on my PC with Linux Mint 22.1 Cinnamon.
Until two days ago, I had version 2.10.36-3ubuntu0.24.04. However, since yesterday I have been unable to use it: when creating or opening an image, the various mouse cursors (brush, selection, etc.) remain confined to the left side immediately after the toolbar and there is no way to do anything. After searching in vain, I purged GIMP (sudo apt-get purge --auto-remove gimp) and installed the Flatpak version.
Now, these are the problems I have:
- When I went to Edit>Preferences>Folders>Brushes, I saw that there are 2 folders, but when I try to open them, it tells me that the folder cannot be found. The folders indicated are these:
/home/franz/.var/app/org.gimp.GIMP/config/GIMP/3.0/brushes
/app/share/gimp/3.0/brushes
I went to check and, indeed, under the folder /home/franz/.var/app/org.gimp.GIMP/config/GIMP there was nothing, all the various folders were missing, i.e. there was no /3.0 folder and all the subfolders /brushes /filters /fonts /plug-ins etc.! So all the other various preference folders do NOT actually exist (!?);
- When I try to put a new brush in the brushes folder indicated by the programme (see above), it does not exist when I reopen Gimp. It should be noted that, since the folder did not exist (see point 3 above), I created the /3.0/brushes folder myself, but, as mentioned, even if I put new brushes in it, they are not recognised.
- When I right-click on a layer, all the icons are missing from the list that appears. Have they perhaps been removed in the current version?
![[Image: 79800e15f5eec91113d85a0e3e268b89d206c2eb.png]](https://forum.linux.it/uploads/default/original/1X/79800e15f5eec91113d85a0e3e268b89d206c2eb.png)
I think that's everything .
Thanks and best regards to all,
Franz
|
|
|
|