hara.runtime.gimp.impl

+init+

+server-gimp+

gimp

added in 4.1

(gimp)(gimp m)

Creates and starts a GIMP runtime.

gimp-bootstrap

added in 4.1

(gimp-bootstrap port)(gimp-bootstrap port host)

Python bootstrap that runs inside GIMP and starts a TCP server on PORT. HOST defaults to 127.0.0.1; use 0.0.0.0 when running inside a container.

gimp-exec

added in 4.1

(gimp-exec)

Resolves the GIMP executable.

gimp:create

added in 4.1

(gimp:create {:keys [id exec container], :as m})

Creates a GIMP runtime.

invoke-ptr-gimp

added in 4.1

(invoke-ptr-gimp rt ptr args)

Invokes a pointer in the GIMP runtime.

raw-eval-gimp

added in 4.1

(raw-eval-gimp {:keys [reader output], :as rt} code)

Evaluates Python code inside GIMP and returns the JSON-decoded result.

start-gimp

added in 4.1

(start-gimp {:keys [exec container], :as rt})

Starts a headless GIMP process with a Python socket server. Falls back to a Docker container when the local binary is missing and a :container image is configured.

stop-gimp

added in 4.1

(stop-gimp {:keys [process socket container], :as rt})

Stops the GIMP process/socket or container.