User Tools

Site Tools


doc:appunti:linux:gimp_batch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:linux:gimp_batch [2022/11/23 17:20] – [The erode filter] niccolodoc:appunti:linux:gimp_batch [2022/11/23 17:29] – [Call the script from the command line] niccolo
Line 42: Line 42:
     (gimp-image-delete image)))     (gimp-image-delete image)))
 </file> </file>
 +
 +Copy the script into the **$HOME/.config/GIMP/2.10/scripts/** directory, no particular action is required to enable it.
 +
 +===== Call the script from the command line =====
 +
 +Now it is possibile to execute the GIMP in batch mode, using the **%%-b%%** option. Calling the custom function ''simple-myerode'' you can pass the paramteres:
 +
 +<code bash>
 +#!/bin/bash
 +gimp -i -b "(simple-myerode \"IMAGE.JPG\" 0 0 0 0 0 0)" -b '(gimp-quit 0)'
 +</code>
 +
  
doc/appunti/linux/gimp_batch.txt · Last modified: 2022/11/23 17:39 by niccolo