Skip to content

Added Support For kra & krz (Krita Files) to PNG#687

Open
AFAskar wants to merge 6 commits into
p2r3:masterfrom
AFAskar:Feature/kraSupport
Open

Added Support For kra & krz (Krita Files) to PNG#687
AFAskar wants to merge 6 commits into
p2r3:masterfrom
AFAskar:Feature/kraSupport

Conversation

@AFAskar

@AFAskar AFAskar commented Jun 12, 2026

Copy link
Copy Markdown

resolves #684

This PR only implements the conversion from .kra & .krz to .png files, not the reverse. While the reverse conversion is possible, I have not had enough time to implement it. However, the code within the Krita codebase that handles that functionality can be found
here

i attempted to do it using LLMs for assistance (my cpp is very lacking), but i wasn't able to reach a good general solution so i didn't commit that attempt

the kra to png is fully my code (using the comic.ts as reference since they are both archive based formats)

AFAskar added 3 commits June 12, 2026 21:52
…f someone wants to do it here is the file in the krita codebase (krita/libs/ui/kis_png_converter.cpp ) which will help you
@AFAskar AFAskar changed the title Reverted the from png to kra changes, it is possible to convert and if someone wants to do it here is the file in the krita codebase (krita/libs/ui/kis_png_converter.cpp ) which will help you Added Support For kra (Krita Files) to PNG Jun 12, 2026
@AFAskar AFAskar changed the title Added Support For kra (Krita Files) to PNG Added Support For kra & krz (Krita Files) to PNG Jun 16, 2026
Comment thread src/handlers/kra.ts Outdated
Comment thread src/handlers/kra.ts Outdated
Comment thread src/handlers/krz.ts Outdated
Comment thread src/handlers/krz.ts Outdated
@AFAskar

AFAskar commented Jun 26, 2026

Copy link
Copy Markdown
Author

It's been done, but a question
It will be considered lossless if each layer was exported as an image ?
@ConnorTippets

@ConnorTippets

Copy link
Copy Markdown
Contributor

It's been done, but a question It will be considered lossless if each layer was exported as an image ? @ConnorTippets

yeah, pretty much. you might lose some exact color calibration settings but it would be close enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[File format] .kra - krita documents

2 participants