Hi Molly
sorry this is not for you but for
windows guys, maybe someone will find this useful,
I like to keep programs together as well so for Windows
I added a directory to gimp user\plug-ins\Gradient_From_Image
I put the single execute file ChangeImage.exe in that directory
then I made a shell to it, put that in my user\plug-ins directory.
Plugin ChangeImage to Gradient
set it to show in Filters menu
works
Python code to ChangeImage to Gradient below
#!/usr/bin/env python
#
from gimpfu import *
import shlex
import subprocess
import os, sys
def plugin_main(img, drawable):
command = "\"O:\\PortableApps\\gimp-2.8\\.gimp-2.8\\plug-ins\\Gradient_From_Image\\ChangeImage.exe\" \"" + "\"" #<<--EDIT THIS<<--(Directory, where you place program.exe file)
args = shlex.split(command)
child = subprocess.Popen(args, shell=False)
register(
"python_fu_PluginChangeImage",
"Plugin ChangeImage to Gradient",
"ChangeImage",
"S J Bush",
"S J Bush",
"2011",
"<Image>/Filters/Plugin _ChangeImage to Gradient",
"*",
[],
[],
plugin_main,
)
main()
note
in command = line above, you have to change to your user\plug-ins path.
it has to look the same just with your system's paths.
mikechat, can you upload this plug-in? Doesn't show on menu Filter, i think that there is an error on code, or is incompatible with gimp 2.8.8 (windows) otherwise is a problem of my copy and paste on notepad++.