Skip to content

Instantly share code, notes, and snippets.

@trhura
Created July 29, 2015 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trhura/66ae8e651246e3a7adac to your computer and use it in GitHub Desktop.
Save trhura/66ae8e651246e3a7adac to your computer and use it in GitHub Desktop.
(define (border-flag filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-proc-db-call "script-fu-double-border"
RUN-NONINTERACTIVE
image
drawable
'(238 238 238)
7
'(255 255 255)
15
'(0 0 0)
7
7
90
FALSE)
(gimp-item-set-visible (aref (cadr (gimp-image-get-layers image)) 3) FALSE)
(gimp-image-merge-visible-layers image EXPAND-AS-NECESSARY)
(set! drawable (car (gimp-image-get-active-drawable image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment