Skip to content

Instantly share code, notes, and snippets.

@Iktwo
Created November 1, 2016 05:23
Show Gist options
  • Save Iktwo/c93beb621303435d0ccf3e3562fabc26 to your computer and use it in GitHub Desktop.
Save Iktwo/c93beb621303435d0ccf3e3562fabc26 to your computer and use it in GitHub Desktop.
Gimp script to "colorize" image
(define (overlay filename filename2)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename
filename)))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-brightness-contrast drawable 0 -127)
(gimp-brightness-contrast drawable 0 127)
(plug-in-colorify RUN-NONINTERACTIVE image drawable "#3498db")
(gimp-image-convert-indexed image 0 0 255 0 0 "")
(gimp-file-save RUN-NONINTERACTIVE image drawable filename2
filename2)
(gimp-image-delete image)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment