Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@emanchado
Created October 17, 2016 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emanchado/000796a6cbfdb31aff15106258760de1 to your computer and use it in GitHub Desktop.
Save emanchado/000796a6cbfdb31aff15106258760de1 to your computer and use it in GitHub Desktop.
#!/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