Library and executable to extract/render Krita image files
Find a file
2025-08-21 23:02:48 +01:00
src Even better layout 2025-08-21 23:02:48 +01:00
.gitignore Add HTML layers export 2025-07-29 23:34:17 +01:00
build.zig Use latest sap and use curl build export function 2025-08-15 11:51:31 +01:00
build.zig.zon Use latest sap and use curl build export function 2025-08-15 11:51:31 +01:00
LICENSE Add LICENSE 2025-07-25 23:09:41 +01:00
README.md Add README 2025-07-25 23:09:53 +01:00

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).