always know where your towel is
GIMP comes with a Procedure Database (PDB).
It can be found in Help --> Procedure Database.
The PDB contains a list of scripts which can be called from a command line.
The plugins use a language called 'Scheme'.
(Technically, it's Tiny Sceme)
Scheme has the following data types:
(Various bit sizes)
(various bit sizes)
#(0 0 20 70 255 255)
\”This is a string\”
It is very important that backslashes are not used anywhere except for string syntax.
(The image currently opened in GIMP)
The image number is displayed on the GIMP titlebar (eg. Untitled-1.0).
The first image opened in a batch is image 1, the next is 2, etc.
(the layer, identified by a number)
The first layer when an image is opened is 2. Each new layer is incremented.
(0 0 0) to (255 255 255)
The following is an example of a command line batch process.
"C:\Program Files\GIMP 2\bin\gimp-console-2.8.exe" "open file path and name.JPG" -i -d -f --verbose -b "(gimp-curves-spline 2 HISTOGRAM-VALUE 6 #(0 0 20 70 255 255) )" -b "(gimp-file-save 1 1 2 \" save file path and name.JPG\" \" save file path and name.JPG \")" -b "(gimp-quit 0)"
C:\Program Files\GIMP 2\bin\ is the location of gimp-2.8.exe on my pc.
gimp-console-2.8.exe hides the interface. gimp-2.8.exe shows the interface.
-i = NO INTERFACE
-d and -f tells GIMP not to load fonts and special brushes (faster). Probably leave them out if you’re not in a hurry.
--verbose Show what GIMP is doing
All batch commands use the following format:
-b (gimp-plugin-name var1 var2 var3)