< Back to Questions Listing

Has anyone made a script to export several krita files to png/jpg at once?

Category: QuestionsHas anyone made a script to export several krita files to png/jpg at once?
Bobby Caswelch asked 1 month ago

Hi, so my process currently is I export all of my Krita files to png manually in a folder, then had a script made in GIMP that takes all of those pngs and compresses them into smaller jpgs automatically (I can resize/convert however many images I want with the touch of a button). 
Tried looking if there is a similar thing in Krita, the idea being I point to a folder on my computer with Krita files and it exports each of them without needing to go in and manually do it for each one.

1 Answers
Raghavendra Kamath answered 1 month ago

I have a small bash script, which I use to export high resolution and a low resolution image. you can check it out – > https://gitlab.com/raghukamath/kra-output/blob/master/kra-output.sh This script was based on the rendering script by David Revoy you can find that here -> https://framagit.org/peppercarrot/tools/blob/master/renderfarm.sh   Both scripts basically use the mergedimage.png file inside the .KRA file of krita, which is just a zip file. the kra file can be unzipped and th mergedimagepng can be run through imagemagick to scale convert etc.