03-18-2021, 04:17 AM
I have a working Gimp plugin that takes an open XCF, adds a new layer to it, positions the new layer, and then exports a JPG.
However, the plugin only works if I'm in the Gimp UI and the XCF file is already open. I want to run it from the command line and some how call pdb.gimp_xcf_load somewhere top open the XCF, but I can't get the file open or command line to work.
What is the best way to do this? Should I have a wrapper script that opens the XCF and then calls my working script? Or can I both open the XCF and the JPEG in a single plugin? Is there a best practice?
However, the plugin only works if I'm in the Gimp UI and the XCF file is already open. I want to run it from the command line and some how call pdb.gimp_xcf_load somewhere top open the XCF, but I can't get the file open or command line to work.
What is the best way to do this? Should I have a wrapper script that opens the XCF and then calls my working script? Or can I both open the XCF and the JPEG in a single plugin? Is there a best practice?