| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,109
» Latest member: ersc57
» Forum threads: 7,801
» Forum posts: 42,371
Full Statistics
|
| Latest Threads |
how to use different font...
Forum: General questions
Last Post: rich2005
4 hours ago
» Replies: 5
» Views: 230
|
Ofnuts
Forum: General questions
Last Post: sallyanne
7 hours ago
» Replies: 0
» Views: 50
|
arakne path shapes
Forum: Extending the GIMP
Last Post: sallyanne
8 hours ago
» Replies: 7
» Views: 402
|
How to apply layer to obj...
Forum: General questions
Last Post: rich2005
02-05-2026, 03:59 PM
» Replies: 1
» Views: 182
|
Selective transparency
Forum: General questions
Last Post: aka
02-04-2026, 03:44 PM
» Replies: 5
» Views: 371
|
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
02-03-2026, 12:07 PM
» Replies: 12
» Views: 13,010
|
Can you identify effects/...
Forum: General questions
Last Post: rich2005
02-02-2026, 09:34 AM
» Replies: 11
» Views: 825
|
GIMP 3.0.8 Installation
Forum: Windows
Last Post: rich2005
02-01-2026, 08:30 AM
» Replies: 2
» Views: 599
|
Best way to recolor this ...
Forum: General questions
Last Post: rich2005
02-01-2026, 08:25 AM
» Replies: 12
» Views: 1,088
|
A Search For Missing Belg...
Forum: Watercooler
Last Post: Tas_mania
02-01-2026, 03:18 AM
» Replies: 3
» Views: 1,248
|
|
|
| Porting C plugin (xsane) to GIMP 3 |
|
Posted by: skelband - 05-28-2025, 05:27 AM - Forum: Scripting questions
- Replies (2)
|
 |
Hi,
I am engaged in porting the xsane GIMP plugin code to the new GIMP 3 API. So far it has been a bit of a struggle since the doc is still pretty sparse. So I am looking for some hints.
xsane doesn't have a very complex relationship with GIMP, so I don't believe that there is much left to do. However, I do have some specific questions that I hope I can get some help with.
What I have so far is the infrastructure and new boilerplate to register the menu items. All of that works fine.
Now I am looking at image creation.
I have the following sequence to get a new image with an attached layer:
gimp_image_new()
gimp_layer_new()
gimp_image_insert_layer()
Now, in order to get a buffer onto which to draw the scanned image, the GIMP 2 code used:
buffer = gimp_drawable_get_buffer(layer_ID);
However, this function does not take a layer in GIMP 3. It takes a GimpDrawable. What do I need to do to draw to a layer or is there a different method not recommended? There doesn't seem to be a function to get a drawable from a layer.
Cheers, and thanks in advance.
skelband
|
|
|
| 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?
|
|
|
|