Questions tagged [script-fu]

Script-Fu is a version of Scheme embedded in The GIMP, used to automate image manipulation tasks.

Script-Fu is the embedded scripting language of the GIMP image editor. It is based off a dialect of Scheme called TinyScheme, which is nearly R5RS compatible; because of this, general language issues with Script-Fu could benefit from the larger audience of the tag. GIMP's documentation site has a section on scripting which deals with the Scheme language used by Script-Fu.

Script-Fu is intended for automating image manipulation; because of this, it also includes a large library of functions. Questions about the Script-Fu library should always be tagged .

In addition to the Script-Fu plugins provided by The GIMP itself, two repositories of scripts exists at The GIMP Plugin Registry, as well as at GIMP Scripts. In addition, the complete Script-Fu library is accessible through GIMP's Procedure Browser, which includes not only core functions built into GIMP but also functions belonging to any installed plugins.

152 questions
0
votes
1 answer

I want to merge 2 layers using script-fu code

I am new to script-fu in gimp. I want to merge 2 layers using script-fu code. But I don't know how to write down the function. Can you help me write the (.scm) function for me
0
votes
1 answer

Faster Way to Import/Export in GIMP?

I have a batch processing script in GIMP that, for every image file in a directory, involves importing the image, importing a background image as a layer, doing some edits, and exporting the image. The edits take no time at all but the…
0
votes
0 answers

GIMP Script-fu Documentation

I know how to access the procedure browser, but I'd like to know if there's any documentation for script parameter types or things like DIR-SEPARATOR which I can't find anywhere. It's silly that I have to check this tutorial to find a list of SF-…
0
votes
0 answers

apply same curve-color to tiff in batch in GIMP

I would like to apply a specific color curve to some 2000 .tif files. I am a Windows user and so far I have used GIMP for photo editing. Using Gimp 2.10 I was able to perform such task working on .JPG files using the batch Image Manipulation plug-in…
Filippo
  • 309
  • 1
  • 2
  • 10
0
votes
2 answers

GIMP Script-fu Batch Background Replacement

Objective I have a bunch of .tga images that use transparency. These images are used in an application where they are sometimes rendered with their transparency and sometimes without, so the 'background' (the RGB areas corresponding to the black…
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

Gimp Script-Fu: Delete a selection

I'm trying to write a script for Gimp that will crop an image, make a circular selection of what's left, invert the selection, and then delete the selection. I have the cropping, selection, and inversion part done, but the deleting is what's getting…
E. Reed
  • 47
  • 6
0
votes
1 answer

How to change GIMP print size with script-fu

I am using GIMP 2.10.24. I have some image and I need to change Print Size Width to 21mm and Height to 30mm. I can do that with Set Image Print Resolution Dialog (Menu->Image->Print Size): screenshot But there is my question: how could I do that…
noirhor
  • 3
  • 2
0
votes
1 answer

Script Fu - Brightness

I was wondering if anyone knows how to use script-fu in order to have gimp read in an image, modify the brightness/contrast and then save the image. Thanx
Olshansky
  • 5,904
  • 8
  • 32
  • 47
0
votes
1 answer

GIMP "Error: eval: unbound variable: newimage" When when executing script

I downloaded a script to batch convert images to a .gbr and It's outdated and doesn't work with current version of GIMP. I don't know much about script-fu so when I got the first error "Error: set!: unbound variable: a" I did a search and found out…
Gyorio
  • 1
  • 2
0
votes
0 answers

Gimp automation(Scripz Fu/Python Fu)

I have a design and need to download them in batch but every download has another variable. For instance the design is: I like [variable] variable should be different at any download. Example of variables: [Programming, Basketball, food] So…
user10540788
0
votes
1 answer

Script-Fu Problem with a simple function that renames the selected layer

I am writing a simple script to rename the selected layer. Here is the code: (script-fu-register "script-fu-renaming" ;code name "Renaming Function" ;name "This is for a question…
Ĥvan_Eo
  • 13
  • 2
0
votes
0 answers

Insert an image to a layer with GIMP(2.10) by using script-fu

Hi all i am trying to open and insert an image to a new layer with console (define (xd imgPath) (let* ((theImage (car (gimp-file-load 1 imgPath "c.jpeg"))) (theLayer (car (gimp-layer-new theImage 1500 1500 RGB-IMAGE "Layer 1" 100…
Met Br
  • 634
  • 5
  • 9
0
votes
2 answers

Using unless directive in my Script-Fu prevents it from working

The following script is meant to be invoked via Gimp CLI interface, and it changes the color modes of all PNGs in the current directory to indexed: (define (script-fu-batch-indexify pattern) (let* ((filelist (cadr (file-glob pattern 1)))) …
Metalcoder
  • 2,094
  • 3
  • 24
  • 30
0
votes
1 answer

Watermarking script in GIMP

I'd like to write simple script that: 1) make image smaller by 25% (width 50%, height 50%), 2) adds watermark from another image (finally I'd like to set opacity for that to 20%). My problem is that I'm not fully aware what I do with layers I…
Zby.
  • 1