Python-Fu is a set of Python modules that act as a wrapper to libgimp allowing the writing of plug-ins or standalone scripts for GIMP
Questions tagged [python-fu]
103 questions
0
votes
1 answer
Gimp, python-fu: RuntimeError: execution error in pdb.gimp_image_merge_down
My goal is to put one image over the other and save the resulting image as jpeg file.
The first one is new one, it has 450x300 dimension and white background. The second one is loaded from file and its visible part is added as a layer to the…

rok
- 9,403
- 17
- 70
- 126
0
votes
1 answer
Error: ( : 1) Invalid number of arguments for python-fu command line execution
I have added the following python script to /usr/lib/gimp/2.0/plug-ins folder
#!/usr/bin/python
from gimpfu import *
def scale(imageName):
pass
register(
"my",
"",
"",
"",
"",
"2017",
"/Image/Hi..",
…

rok
- 9,403
- 17
- 70
- 126
0
votes
1 answer
GIMP Python, selection based on path not the same as menu item "From Path"
I've created an image in GIMP 2.8 with several paths using Select -> To Path. Now I want to create a Python script that will loop through all these paths, make a selection based on each path, cut out the selection to a new image, do some additional…

BdR
- 2,770
- 2
- 17
- 36
0
votes
1 answer
python-fu/ Map to Object: Wrong parameter type
after digging through my code over and over again, i am desperate enough to ask online, hoping that someone can help me. i am trying to develop a python-fu script, and one of it's essential parts is mapping the image to an object. But whenever i try…

MCO
- 1,187
- 1
- 11
- 20
0
votes
1 answer
Error when calling gimp-drawable-set-pixel in gimp's python console
I'm typing this code directly into Gimp's Python Console:
img=gimp.image_list()[0]
drw = pdb.gimp_image_active_drawable(img)
gimp-drawable-set-pixel(drw,x,y,3,[0xff,0x00,0x00])
and it's yeilding this error after calling the gimp-drawable-set-pixel…

Tyzoid
- 1,072
- 13
- 31
0
votes
1 answer
gimp edit blend in python script produces different blend than the blend tool
I'm trying to write a script that re-sizes, moves and blends two images in one using gimp 2.8 on ubuntu 13.10.
I uploaded the 2 needed images and the results here:
https://i.stack.imgur.com/s3dLg.jpg
I managed to get all to run but one point fails.…

mbernasocchi
- 813
- 1
- 6
- 10
0
votes
1 answer
Automating Brush Insertion
Very new to Gimp and unfortunately also in need of producing an output :)
I am looking to automate a repetitive task of placing instances of existing brushes in an image. Can anyone point me in the direction of the command that I might use to…

Paul Eden
- 338
- 1
- 3
- 10
0
votes
3 answers
Gimp- How can I use a script (``solid-noise``) inside another script?
I want to create a script that call a set of other scripts and run them with specific parameters. Specifically for now, I want to run the solid-noise cloud rendered. I created a script and I call the solid-noise script using …

Yotam
- 10,295
- 30
- 88
- 128
0
votes
2 answers
Why can't I add a variable to GIMP plugin?
Ok, I am trying to develop a small plugin for gimp that makes a bitmap font. For some reason now that I added the following code it won't work.
current_cell_x = 0
current_cell_y = 0
x_pos = current_cell_x * cwidth
y_pos = current_cell_y *…

Zeveso
- 1,274
- 3
- 21
- 41
0
votes
1 answer
Plugins usually don't work, how do I debug?
I am trying to write a plugin that will create a bitmap font. However, this is very frustrating to learn... while I am not familiar with python, it is not that hard to pick up and have not had problems with it outside of GIMP.
Copied some of the…

Zeveso
- 1,274
- 3
- 21
- 41
0
votes
1 answer
Start Gimp plug-in at start-up
I'm trying to create a Blender add-on that syncs it with Gimp. So, I have a python-fu plug-in for Gimp and I want to achieve this: when I open Gimp from Blender(with Python), Gimp should run this plug-in immediately(at start-up)! But, how can I do…

Antoni4040
- 2,297
- 11
- 44
- 56
-1
votes
1 answer
How to save multiple layer modifications in one save
I have a python script that finds and updates multiple text layers in an existing GIMP file. I want to save the whole file out as a copy. However the only way I can seem to find that documented using pdb.gimp_xcf_save requires I pass in a drawable…

Pete Duncanson
- 3,208
- 2
- 25
- 35
-1
votes
1 answer
GIMP How to use python console (or make plugin) to navigate between images
Note: This applies to windows only, due to the inherent problems from using standard, free automation tools for (EDIT: GDK) applications on Windows. If there is a better way to work with automating GDK on Windows than AutoIt, please let me know)
I…

dev.user.23
- 37
- 5