Created
May 3, 2017 19:00
-
-
Save jarnik/f7dc069d67a0e32c3873bd3453e9a9ee 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
;; License GNU/GPL | |
;; Author Jaroslav Meloun | |
(define (script-fu-remove-unused-colors img drawable) | |
(let* ( | |
) | |
(gimp-image-undo-group-start img) | |
(gimp-convert-rgb img) | |
(gimp-image-convert-indexed | |
img | |
0 | |
0 | |
255 | |
FALSE | |
TRUE | |
"" | |
) | |
(gimp-image-undo-group-end img) | |
(gimp-displays-flush) | |
) | |
) | |
(script-fu-register "script-fu-remove-unused-colors" | |
_"Remove unused indexed colors" | |
_"Remove unused indexed colors" | |
"Jaroslav Meloun" | |
"Jaroslav Meloun" | |
"2017" | |
"*" | |
SF-IMAGE "Image" 0 | |
SF-DRAWABLE "Drawable" 0 | |
) | |
(script-fu-menu-register "script-fu-remove-unused-colors" | |
"<Image>/Colors") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment