Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automation questions.
#1
Hello,

I am using Python 3 to edit some images successfully using PIL, but there are things that I'm unable to do with it and was hoping to call gimp from python for those specific tasks.

What I'm currently manually doing in GIMP and need to automate is:
1. Open Image
2. Select by color
3. Shrink selection
4. Select > To path
5. Export path.. [as svg] (accessing the svg information without saving the file would also work)

From what little I could see in the python console inside GIMP the following procedures can be scripted that seem to match the above requirements, though I wouldn't know how to do so yet:
1. file-png-load
2. gimp-image-select-color
3. gimp-selection-shrink
4. plug-in-sel2path
5. Can't find any.


What would be the best way to automate this process from the command line?

Thank you,
Nick
Reply


Messages In This Thread
Automation questions. - by PSNick - 10-10-2019, 01:00 AM
RE: Automation questions. - by Ofnuts - 10-10-2019, 07:07 AM
RE: Automation questions. - by PSNick - 10-11-2019, 04:45 AM
RE: Automation questions. - by Ofnuts - 10-11-2019, 06:24 AM
RE: Automation questions. - by rich2005 - 10-11-2019, 08:41 AM
RE: Automation questions. - by PSNick - 10-13-2019, 01:48 AM
RE: Automation questions. - by Ofnuts - 10-13-2019, 09:18 AM

Forum Jump: