This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Using krita transform tools from linux terminal

Tags: None
(comma "," separated)
tombombadil
Registered Member
Posts
29
Karma
0
OS
Hi,

I've heard it's possible to use some of kritas features from linux terminal and it made me wonder if it's possible to use krita to automate mass rescaling a large number of sprites (a thing I often have to do is exporting pixel art sprites in original scale and then also scale them all up using box transform algorithm). I know i can just load all sprites as layers and resize the entire document, but then I have to crop and export each layer one by one. Does someone know if it's possible to automate this somehow?
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS
With Krita 4.0 you will be able to write and run a python script that can do this.

The api docs for 4.0 python are here:
https://api.kde.org/extragear-api/graph ... index.html
Basic python usage here:
https://docs.krita.org/Category:Python_Scripting
And guy who writes a lot about krita python scripting:
https://kritascripting.wordpress.com/
tombombadil
Registered Member
Posts
29
Karma
0
OS
That's super cool, thanks! Hopefully I'll be able to figure out how to use it :P


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]