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 export batch with edit

I want to export a deck of cards. I want to programmatically update the Value text field [A,1,2,3....]. Is there a plugin that can do this? Or will I have to explore Gimp scripting? Any guidance would be appreciated. I'm new to gimp so go easy on…
Just_Alex
  • 518
  • 1
  • 4
  • 16
0
votes
1 answer

Creating an Gimp "debug" user profile for experiments and plugin-development

Is it possible to create an alternative User Profile folder (Windows c:\Users\{your_id}\AppData\Roaming\GIMP\2.10, Unix's ~/.config/GIMP/2.10, MacOS /Users/{your_id}/Library/Application Support/GIMP/2.10/) for plugin development purposes in the…
0
votes
0 answers

How to create a layered PSD file from using Gimp command line?

I need to create a layered PSD file from a list of PNG images using the GIMP command line, in which each PNG image is one layer of a generated PSD file. I found one git related to this. It runs successfully without any error, but it didn't create a…
0
votes
1 answer

Gimpfu Plugin is not starting

I am currently trying to write my own plugin for Gimp.It's my first time and also my first lines in python so be gentle with me. The code is used to make my live easier creating Liveries for DCS. For that it needs to be able to find a layer by name…
0
votes
1 answer

GIMP pythonfu get drawable from current image

I am iterating over all open images. I want to apply threshold on each of them. Since the threshold plugin takes drawable as argument, the drawable should be changed every time the image is changed, at least that's what programatically makes sense.…
Masum
  • 243
  • 1
  • 2
  • 6
0
votes
1 answer

looking for syntax example of 'gimp.Channel(image,name,width,height,opacity,color)'

No problems with 'pdb.gimp_channel_new(image, width, height, name, opacity, color)' but I cannot get the syntax for 'gimp.Channel(image,name,width,height,opacity,color)' >>> image=gimp.image_list()[0] >>> channel =…
Kevin York
  • 13
  • 1
0
votes
1 answer

How to change layer parent in python in Gimp?

Simple problem. I want to change the parent of LayerA to GroupB. The member "parent" of layer is read only, and I can't use pdb.gimp_image_insert_layer because the layer already has been added to image. I also tried removing it first by…
krokots
  • 45
  • 5
0
votes
1 answer

GIMP Script-Fu: batch edit images with a mask

I have thousand of images that i must removed nearly 1/2 the content from. Mannually i would: load image-a add alpha-channel import layer image-b (pre-made mask) make selection from masked out section delete mask layer clear selection from image…
0
votes
1 answer

Gimpfu paste from windows clipboard

Trying to paste the windows clipboard into a new image in gimp 2, I tried: image = pdb.gimp_edit_paste_as_new() display = pdb.gimp_display_new(image) Line 2 gives error: Procedure 'gimp-display-new' has been called with an invalid ID for argument…
0
votes
1 answer

How do i rename a Layer using python-fu

I would like to rename the new layer which i just created. floating_sel = pdb.gimp_selection_float(drawable, 0, 0) pdb.gimp_floating_sel_to_layer(floating_sel) pdb.gimp_item_set_name(item, "s")
0
votes
1 answer

GIMP script can find custom palette when run in terminal but cant when inside a program

I want to execute gimp -if --batch-interpreter python-fu-eval -b 'import sys;sys.path=["."]+sys.path;import colorindex;colorindex.python_colorindex("gimptemp.jpg")' -b 'pdb.gimp_quit(1)' (which works fine when run in the terminal) from inside a…
Firebug
  • 5
  • 2
0
votes
1 answer

Calling gimp_image_convert_indexed with a custom palette, palette cant be found

I am making a script to limit any image into 3 colors (to be used in a program to display to an e-ink display). I want to do this using GIMP's gimp_image_convert_indexed function bc Wand and PIP's .quantize don't work how I want them to and don't…
Firebug
  • 5
  • 2
0
votes
1 answer

Gimp scriptfu procedure name of Colors->Map->Rotate Colors

The title basically says it all. I fail to find the script fu gimp procedure that acts like what you get in the Colors->Map->Rotate Colors menu. Besides, is there a general way to get the procedure names from the menu items?
Paolo.Bolzoni
  • 2,416
  • 1
  • 18
  • 29
0
votes
1 answer

In GIMP (DBP), how can I batch-resize photos to a certain width and keep aspect ratio?

I have been using GIMP to resize photos one by one, to say 800px-width while keeping aspect ratio. I downloaded the David Batch Processor plugin and everything looks fine, except it isn't able to resize to a predetermined width or height whilst…
limestreetlab
  • 173
  • 1
  • 11
0
votes
1 answer

How to change text layer in GIMP?

I have a gimp file that I'm using as a template. I'm trying to find a way to script something so that I can easily replace the template text in that file to something that I specify. Cheers
1 2 3
8 9