Library and executable to extract/render Krita image files
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
Krita export (in Zig)
Experimental
This is a library and a program to read krita files, export their layers, and combine them into a final image.
Usage
Build with zig build -Doptimize=ReleaseFast and use the resulting krita-export executable:
krita-export - Export layers from a Krita file
Usage:
krita-export [options]
Options:
-i <input> Input file
-o Overwrite existing extraction folder
-l <log_level> Log level
-j <jobs> Number of jobs
-k Don't delete the temporary folder
-h Print this help
For example, download the source file of Mozilla leadership by David Revoy (CC-BY 4.0) and render all layers individually and combined:
krita-export -i 2024-09-18_mozilla-leadership.kra -l info -j 8
You should obtain an image (almost?) identical, minus the vector layer (the credits on the bottom right).