Questions tagged [gimpfu]

gimpfu is a python module similar to python-fu which provides an interface for writing plug-ins for gimp in python

For more information refer to the Gimp Python Documentation

121 questions
0
votes
0 answers

Creating a new image from system clipboard via Python-FU

I am trying to paste the current image from the system clipboard into a new image, just like File -> Create -> From Clipboard. Perusing the object browser in the python-fu console, the most promising I could find is: image =…
AnoE
  • 8,048
  • 1
  • 21
  • 36
0
votes
1 answer

In a gimp (pythonfu) plug-in, is there any way for the plugin itself to determine its installation path?

Suppose that a gimp (PyGIMP) plugin needs access to some arbitrary image files distributed with the plug-in. Given that the set can be installed by the user anywhere, is there a way for the plug-in itself to determine its own installation path to…
Chrys G
  • 99
  • 10
0
votes
1 answer

How do I rotate an image from a console using GIMP?

I am trying to run GIMP using console commands. All I want it to do is rotate an image 90 degrees. I added GIMP to my environmental variables so that I can call it from a console window. I also put the picture I want to rotate in my root console…
PetSven
  • 366
  • 3
  • 13
0
votes
1 answer

Where can I find the GIMP Python Object References, I'm currently looking for the properties of Vectors and Points

I'm trying to write a script in GIMP Python and cannot seem to find any online docs regarding the GIMP Python Objects such as images, layers, paths, vectors, strokes, ect. I've looked around developer.gimp.org and the good old google but cannot seem…
T4roy
  • 196
  • 6
0
votes
2 answers

Trouble importing third party Python packages to GIMP 2.10 so that they can be used to write GIMP plugins

My goal is to import a couple third party Python packages for use with my GIMP installation. This will allow me to use these packages when developing a GIMP plugin. I noticed a few directories that may be of use. They are as follows: C:\Program…
Psyntax
  • 23
  • 5
0
votes
1 answer

Font size rendering is different depending upon login using Gimp?

I am using Gimp python-fu plugin. The plug-in written correctly renders a text block: (GIMP_UNIT_POINT = 3) titleBlockLayer = pdb.gimp_text_layer_new(img, title, , 40, GIMP_UNIT_POINT) but only if gimp is invoked from the X window…
Chrys G
  • 99
  • 10
0
votes
1 answer

Is it possible to use win32com in python script for GIMP

I try to use win32com in GIMP python script. Script should appear under tab: /Grzegorz. I noticed that "IMPORT FROM EXCEL..." shortcut appears on tab only when I delete import declaration "import win32com.client as win32". So I assume win32com…
Grzegorz
  • 35
  • 3
0
votes
1 answer

What does the 'gimp_histogram' procedure require to work?

I do not understand why my call to pdb.gimp_histogram throws a RuntimeError: execution error. from gimpfu import * def plugin_main ( timg, tdrawable ): pdb.gimp_histogram( tdrawable, 0, 0, 255 ) According to the docs, the function takes four…
Jet Blue
  • 5,109
  • 7
  • 36
  • 48
0
votes
1 answer

How to run Noise reduction filter from plug-in?

I want to write a plug-in, that besides other things, apply Enhance/Noise reduction filter. But I found out that there is no similar procedure in the browser. And even no documentation for this filter, which is strange. So, does anybody knows how to…
frenzy
  • 1,632
  • 3
  • 16
  • 18
0
votes
1 answer

Q: Exporting GIMP script after editing a photo?

I'm wondering if it is possible to interactively edit a photo in GIMP and then export a script to programmatically transform a series of images in the same way? Chris
Chris
  • 3,109
  • 7
  • 29
  • 39
0
votes
1 answer

GIMP Script-fu/Python-fu: apply filter or color to all layers?

Okay, I'm fairly new to GIMP scripts/plug-ins and stackoverflow so I apologize in advance for any blunders I'm prone to make. Anyway, I have Windows 8, GIMP 2.8.22, GAP, and animstacks all for the purpose of making high quality gifs. Recently I…
0
votes
0 answers

Gimpfu, vpropagate parameters

I'm currently working on a small automation script for gimp. For this, I need the function pdb.plug_in_vpropagate() My problem now is, that the result of my script differs greatly from the resualt via the same filter with the (supposingly) same…
Das.Dev
  • 1
  • 1
0
votes
1 answer

Gimp python-fu: selecting two layers

I would like to create a python-fu script for gimp where the user could select two layers. register( (....) [ (PF_IMAGE, "image", "Input image", None), (PF_DRAWABLE, "layermask", "MASK:", None), (PF_LAYER, "drawinglayer", "DRAWING:",…
Pierre
  • 34,472
  • 31
  • 113
  • 192
0
votes
2 answers

Scale image layer uniformly using python-fu in Gimp

My goal is scaling an image using python-fu library for gimp in a uniform way. It means specifying width/height should be enough for scaling. Gimp should change height/width accordingly. In Gimp GUI it's set with the marked toggle: I'm using the…
rok
  • 9,403
  • 17
  • 70
  • 126
0
votes
1 answer

Run linux command in python 3

Running the following command in linux bash succeeds: gimp --no-interface -b '(python-fu-scale RUN-NONINTERACTIVE 0 0 "img.jpg")' -b '(gimp-quit 0)' Output: batch command executed successfully is printed and child process exits Running it with…
rok
  • 9,403
  • 17
  • 70
  • 126
1 2 3
8 9