GIMP is a cross-platform image editor.
- Additional directory for user scripts, brushes, gradients etc. is
/gimp
.
-
Batch mode
Let make a simple script e.g.
~/unsharp.scm
with content:(define (simple-unsharp-mask filename radius amount threshold) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image))) (buffer (vector "")) (output "/app/")) (plug-in-unsharp-mask RUN-NONINTERACTIVE image drawable radius amount threshold) (re-match "([^/]+)$" filename buffer) (set! output (string-append output (substring filename (car (vector-ref buffer 0))))) (gimp-file-save RUN-NONINTERACTIVE image drawable output output) (gimp-image-delete image)))
Then run command:
docker run --rm -v `pwd`:/app -w /app -v ~/unsharp.scm:/gimp/scripts/unsharp.scm minidocks/gimp \ -i -b '(simple-unsharp-mask "/usr/share/gimp/2.0/images/gimp-splash.png" 5.0 0.5 0)' -b '(gimp-quit 0)'
And in you working directory is the processed image.
-
Run GUI
xhost + docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v `pwd`:/app -w /app minidocks/gimp
Tag | Size |
---|---|
latest, 2.10 | |
2.10 | |
2.8 |