Created
November 1, 2016 05:23
-
-
Save Iktwo/c93beb621303435d0ccf3e3562fabc26 to your computer and use it in GitHub Desktop.
Gimp script to "colorize" image
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 (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