Created
October 17, 2016 18:47
-
-
Save emanchado/000796a6cbfdb31aff15106258760de1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
from gimpfu import * | |
import time | |
def grow_sel_4(img): | |
gimp.context_push() | |
img.undo_group_start() | |
pdb.gimp_selection_grow(img, 4) | |
img.undo_group_end() | |
gimp.context_pop() | |
register( | |
"python-fu-grow-sel-4", | |
"Grow selection by 4px", | |
"Grows the current selection by exactly 4 pixels.", | |
"Esteban Manchado Velazquez", | |
"Esteban Manchado Velazquez", | |
"2016", | |
"Grow by 4px", | |
"RGB*, GRAY*", | |
[ | |
(PF_IMAGE, "image", "Input image", None), | |
# (PF_DRAWABLE, "drawable", "Input drawable", None), | |
], | |
[], | |
grow_sel_4, | |
menu="<Image>/Select" | |
) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment