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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,108
» Latest member: tadeusz@quality07.com.pl
» Forum threads: 7,800
» Forum posts: 42,368

Full Statistics

Latest Threads
how to use different font...
Forum: General questions
Last Post: Running_late
5 hours ago
» Replies: 4
» Views: 183
arakne path shapes
Forum: Extending the GIMP
Last Post: denzjos
9 hours ago
» Replies: 6
» Views: 329
How to apply layer to obj...
Forum: General questions
Last Post: rich2005
02-05-2026, 03:59 PM
» Replies: 1
» Views: 170
Selective transparency
Forum: General questions
Last Post: aka
02-04-2026, 03:44 PM
» Replies: 5
» Views: 347
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
02-03-2026, 12:07 PM
» Replies: 12
» Views: 12,972
Can you identify effects/...
Forum: General questions
Last Post: rich2005
02-02-2026, 09:34 AM
» Replies: 11
» Views: 812
GIMP 3.0.8 Installation
Forum: Windows
Last Post: rich2005
02-01-2026, 08:30 AM
» Replies: 2
» Views: 584
Best way to recolor this ...
Forum: General questions
Last Post: rich2005
02-01-2026, 08:25 AM
» Replies: 12
» Views: 1,076
A Search For Missing Belg...
Forum: Watercooler
Last Post: Tas_mania
02-01-2026, 03:18 AM
» Replies: 3
» Views: 1,237
eps file won't open
Forum: General questions
Last Post: rich2005
01-30-2026, 09:26 AM
» Replies: 2
» Views: 328

 
  Python plugin development
Posted by: Milarck - 01-06-2022, 07:26 PM - Forum: Extending the GIMP - Replies (5)

Hello here! 

I've been trying to make a Python plugin for Gimp for two days now. For now, my goal is quite simple, I want to be able to create / duplicate layers, etc. 

So I made my python file, put it in the right folder, registered it, etc. 

Here is the code I got for now: 

Code:
#!/usr/bin/env python

from gimpfu import *


def test_function(image, drawable):
   pdb.gimp_drawable_set_name(drawable, "My new layer name")
   pdb.gimp_message("Test 1")
   
   width = drawable.width
   pdb.gimp_message("Test 2")
   
   height = drawable.height
   pdb.gimp_message("Test 3")
   
   img = gimp.image(width, height, RGB)
   pdb.gimp_message("Test 4")
   
   layer_one = gimp.layer(img, "My layer", width, height, RGB_IMAGE, 100, NORMAL_MODE)
   pdb.gimp_message("Test 5")
   
   img.add_layer(layer_one, 0)
   pdb.gimp_message("Test 6")
   

register(
   "python-fu-test-function",
   "Test script",
   "This is a test script",
   "Me", "Me", "2022",
   "Test",
   "",
   [
       (PF_IMAGE, "image", "takes current image", None),
       (PF_DRAWABLE, "drawable", "Input layer", None)
   ],
   [],
   test_function, menu="<Image>/File")  # second item is menu location

main()

As a result, I got displayed in the warning console: 

"Test 1"
"Test 2"
"Test 3"

And that's it. It seems that the line "img = gimp.image(width, height, RGB)" stops the script (without error message), while nothing seems particularly off with it. 
Actually, this line of code was copy pasted from this documentation (sample, section 2.1).  

As I'm working on this, I have the feeling to be dealing with a development that seems quite random. Not having the possibility to work in a proper development environment is really tiring, each time I'm coming up with something I have to save the python script, go in gimp, launch the script, see if it works, retry...

Do someone have advices on this matter?

Thank you very much.

Print this item

  Keyboard shortcut for brush rotation
Posted by: kmkenpo - 01-06-2022, 03:41 PM - Forum: General questions - Replies (2)

I am sorry if this is something that I should be able to easily find on the net... but each and every tutorial / help page, gives basically the same answer... but it simply does not work.

How do I bind AND use then activate a keyboard (or mouse wheel) shortcut that allows me to rotate a custom brush so that I do not have to constantly go back and forth with a slider to make micro-adjustments?

Thank you for any assistance.

Print this item

  GIMP writes a lot of data to SSD (C:) while opening (fresh install)
Posted by: Hidetoshi6721 - 01-06-2022, 08:38 AM - Forum: Installation and usage - Replies (4)

Hello there,
I installed GIMP to my HDD (D:) drive but it writes a lot of data to the SSD (C:) drive instead.
Please tell me if there's any method of making it write to HDD instead of the SSD, to increase the SSD's longevity.

Print this item

  Exported images look different in different browsers and screens etc.
Posted by: onojk123 - 01-05-2022, 12:11 AM - Forum: General questions - Replies (2)

What is best practice for exporting images so that they don't look so different from the GIMP view I see before exporting the image?  Usually stick to PNGs and JPGs for exporting.  I have to export equal to or below 80MB and I think less than 200 Megapixels.

[Image: Screenshot-from-2022-01-04-16-34-26.png]

Print this item

  Selection, crop not working anymore
Posted by: alain.roger - 01-04-2022, 04:09 PM - Forum: General questions - Replies (1)

Hi,

I have a weird behavior on my Linux installation.
I have  Gimp 2.10.30 and I'm not able to select a part of my image or to crop it.
Icons are available and I can click on them and set a fixed ratio, but when I try to set the fixed ratio or free ration clicking on the image, nothing happen.
I have the same behavior if I use my graphic tablet.


To be clear: mode is in "replace the current selection" not in "subtract"

What's going on ?

thx

Print this item

  imitate kodak, cokin and hoya filters
Posted by: denzjos - 01-04-2022, 11:59 AM - Forum: Other graphics software - Replies (1)

With Opanda PhotoFilter freeware one can imitate several kodak, cokin or hoya filters to optimise photos 

https://www.opanda.com/en/pf/download.htm

Print this item

  Remove background without pixelated edges
Posted by: gcuoco37 - 01-03-2022, 10:48 PM - Forum: General questions - Replies (2)

Hey all,

I'm trying to cut a single piece out of a full jpg, delete the background, and change the color from black to white. When I select the image and delete everything else the edges come out looking all pixelated.  I was using the square select to remove the big chunks, then I was using the magic wand to select the image I want to save and use the invert select option to remove the background.

The magic wand selects by color, but there is a range of grayscale around the boarder when I delete the bulk of the image.

Any help is appreciated.

Greg

Print this item

  Printing a scale drawing from a Photo
Posted by: rovingpaddy - 01-03-2022, 03:01 PM - Forum: General questions - Replies (6)

I had a search around but couldn't find any conclusive answers to what I'm trying to do. I'm new to the forum, so any help is very much appreciated. 

So, I need to produce patterns for making bicycle frame bags for my work. However not everyone lives local enough to do a physical drawing/pattern. So customers will email me a high res photo of their bike frame with a tape measure or ruler attached to the frame for scale.
My question is, how can I take this image from the customer and then using GIMP, make sure the image is at 1:1 scale and then print it out on multiple A4 pages? Is there even a way?

I'm very new to using GIMP so I'm completely lost at the moment.

If you can point me in the direction of any other topics or videos that may help that would also be great.

[Image: R8iDeAN.jpg]

Cheers
Patrick

Print this item

  Recreate this background picture
Posted by: Brieuc_m - 01-02-2022, 05:39 PM - Forum: General questions - Replies (3)

Hey there, 

I would like te recreate this background (or at least the style of it) on Gimp but I don't event know where to begin. Can someone help me ?? 

[Image: Princes-03-1150x0-c-default.jpg]

Thank you very much !! Smile

Print this item

  Problem with brush size
Posted by: lazy_queen666 - 01-02-2022, 12:42 AM - Forum: General questions - Replies (1)

So i've been having this issue with brush siezes. I want to use the pizel brush in size 2 but it looks just like brush 3. I need a 2x2 bursh not 3x3 or 1x1. Does anyone know how to fix this issue?

Print this item