Created
July 29, 2015 07:47
-
-
Save trhura/66ae8e651246e3a7adac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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