Skip to content

minidocks/gimp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIMP docker image (minidocks/gimp)

GIMP is a cross-platform image editor.

Features

  • Additional directory for user scripts, brushes, gradients etc. is /gimp.

Usage

  • 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

Tags

Tag Size
latest, 2.10
2.10
2.8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published