Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active August 29, 2015 14:21
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 weshouman/5f2e531318a0b70ec9c9 to your computer and use it in GitHub Desktop.
Save weshouman/5f2e531318a0b70ec9c9 to your computer and use it in GitHub Desktop.
gimp plugins tutorial
tut1
http://stackoverflow.com/questions/12662676/writing-a-gimp-python-script
step1: put the script in first comment in the plugins folder set in pref->folders->plugins
step2: filters->python-fu->console->browse
step3: browse python-flip
step4: click apply
step5: change the "file" keyword to a test image with its path ie: pdb.pyhon-flip("/tmp/test.png")
step6: click enter
step1: ensure having the execution permissions on the file (ie: 755)
tut2:
step1: put the script gimpbook.com/scripting/gimp-script-templates/helloworld.py in the plugins folder
step2: as before
step5: browse for python_fu_hello_world
step4: as before
step5: type the parameters {ie: pdb.python_fu_hello_world("Hello world", "Sans", 20, "red")}
thanks @RaniaRho for the help :D
@ranianr
Copy link

ranianr commented May 16, 2015

For tut1 you can use the cmd command mentioned in the link passing the img as an input parameter to the function
gimp -i -b '(python-flip RUN-NONINTERACTIVE "/tmp/test.jpg")' -b '(gimp-quit 0)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment