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
1 answer

GIMP Python-Fu script does not run with more than 4 parameters

I am trying to write a Python-Fu plugin for GIMP, but adding more than 4 input parameters (including the Image and Drawable parameters) will cause the script to not run at all. I have tried this with various input parameter types and they all…
MrKagouris
  • 106
  • 1
  • 8
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

Cant adjust Opacity of image loaded as layer

If I open an existing image as a base image, and a second image as a layer to add to the base image, is there a way to adjust the opacity of the layer image? base_image = pdb.gimp_file_load(img, img) layer_1 = pdb.gimp_file_load_layer(base_img,…
Kelly
  • 57
  • 6
0
votes
1 answer

How can I batch combine 'png images in gimp? ie one background image with many overlays?

I have an image that I need to combine with a large number of QR codes individually, and then save as a new image. Is this possible to do using gimpfu or bimp? The QR codes need to be positioned specifically and I am having issues trying to…
xamiam
  • 3
  • 2
0
votes
1 answer

Gimp python plugins debugging with Winpdb trouble

I want to debug some script and I followed Omid Raha suggestion from this post Writing gimp plugins in python on windows- how do i debug? where is the output?. The system work so I am able to step into my code but this error happen when the…
Marco
  • 1
0
votes
1 answer

How run multiple consecutive GIMP batch commands without quitting GIMP for each one?

Is there a way to run these GIMP batch commands from a bash shell script or python script one right after another without quitting GIMP after each one? #!/bin/bash gimp -i -b '(python-fu-dgm-batch-create RUN-NONINTERACTIVE "ABC3-" "dgmconfig.xml"…
rtsnhth
  • 87
  • 1
  • 11
0
votes
2 answers

Gimp - The current image is not passed as parameter to my plug-in function

I have this function def enumerategrid(image, width, height, tcolor, theight, font, startfrom) And have it registered: gimpfu.register( proc_name="enumerategrid_plugin-pdb", blurb="Enumera rejillas en una imagen", help="Enumera rejillas…
shackra
  • 277
  • 3
  • 16
  • 56
0
votes
2 answers

Add a line feed to a python gimp 2.8.4 script

I have a Python Gimp script that works well, but have one issue: When I need to place multiple lines on an image, I have to create two separate text layers. #Sample of text parameter xml file
rtsnhth
  • 87
  • 1
  • 11
0
votes
1 answer

script-fu invalid number of arguments

I want to create an image like notebooke paper, and I thought it is easy if the section of drawing lines is automated. In order to make it, I decided to use gimp's function named 'gimp-rect-select' and specify the small height value. I…
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

How do I draw pixels with GIMP Python's gimp-drawable-set-pixel?

Currently I have this code: def my_script_function(image, drawable, text_value, int_value) : pixel = [0,0, 255, 255] for i in range(1,1600): for j in range(1,1600): pdb.gimp_drawable_set_pixel(drawable, i, j, 4, pixel) …
JVE999
  • 3,327
  • 10
  • 54
  • 89
-1
votes
1 answer

Create .tiff image with both transparency channel and alpha channel

By setting a .tiff file "tiff:alpha" tag to either unspecified or unassociated I can have photoshop display it's alpha channel as either a premultiplied transparency or a seperate alpha channel. However if I manually edit an image through photoshop,…
ForsakenCreator
  • 83
  • 1
  • 12
-1
votes
2 answers

How do I install Gimp-Python on windows?

I try to write a simple plugin with gimpfu in python and I tried following those instructions. 1.2. Installation Gimp-python consists of a Python module written in C and some native python support modules. You can build pygimp with the…
JaRoMaster
  • 428
  • 1
  • 3
  • 26
1 2 3
8
9