![]() Registered Member ![]()
|
Is it possible to do remote / headless batch processing with Krita?
Will it take a python startup script as a boot argument? If not.. is it possible to run Krita without the ui, or will the plugin API be able to close the application after the batch process is complete? Thanks! |
![]() KDE Developer ![]()
|
The kritarunner application exists for that. On Unix, you might still need a X server because of things like font handling.
|
![]() Registered Member ![]()
|
Indeed, that's what I'm looking for! Thank you. are there any examples / documentation on kritarunner anywhere? I haven't been able to find much.
To test it out, I wrote a simple png exporter, that works from inside of the UI / scripter. When I try to run via Kritarunner it doesn't seem to run. So I had two questions based on some investigation.
thanks so much! |
![]() KDE Developer ![]()
|
Note that for simple export or file conversion, krita has its own commandline arguments.
Kritarunner expects a module name, but there's open wish bug to change that, so that part hasn't been documented yet -- and I haven't had time to work on the tool myself. Debugview is a windows utility for checking stdout and stderr: https://docs.microsoft.com/en-us/sysint ... /debugview -- just start it before running krita or kritarunner. |
![]() Registered Member ![]()
|
I am not sure if this is what you are asking about, but the only command line stuff I see for executing Krita stuff is here
https://docs.krita.org/en/reference_man ... and%20line I am not sure about it plugging into python stuff though. |
![]() KDE Developer ![]()
|
Yes, that doesn't cover the kritarunner executable. |
![]() Registered Member ![]()
|
For now the scripts are all python / windows platform, and I do see the export options in the krita.exe now that you mention it.
In my specific case, I may need to modify color profile / space settings prior to export, so I'll be targeting kritarunner to iterate over folders of images, passing both the filepath to open / convert, and any required arguments for the conversions / infoObject() export settings |
![]() Registered Member ![]()
|
Thanks for all the assistance.
A quick run through debugView shows something un-expected. I'm using the same script that I wrote in scripter, and it seems that when run in kritarunner, the krita module can't be imported. It's unclear ATM if it's seeing the import at the top of script, I'll keep testing
|
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell