# Extra compress kra files for archival

**URL:** <https://krita-artists.org/t/extra-compress-kra-files-for-archival/42949>\
**Category:** Feature Requests\
**Created:** [June 20, 2022, 2:03pm UTC](https://krita-artists.org/t/extra-compress-kra-files-for-archival/42949 "2022-06-20T14:03:19Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![brunoais](https://krita-artists.org/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@brunoais](https://krita-artists.org/u/brunoais)\
**Post date:** [January 18, 2023, 7:12am UTC](https://krita-artists.org/t/extra-compress-kra-files-for-archival/42949/38 "2023-01-18T07:12:25Z")

</div>

> [@Lynx3d](#):
>
> Also bzip2 offers by far the least flexibility, neither copression ratio nor speed changes a whole lot between min and max.

I agree. However, bringing bzip2 compression to `.kra` is a quick-win by comparison. Krita already have quazip into its workflow so changing that would require WAY more work than just changing a version number for a dependency.

> [@Lynx3d](#):
>
> zstd offers a crazy range for speed vs. ratio trade-off, but trying to squeeze out bzip2 or LZMA compression ratio does not seem worth it, its sweetspot is clearly levels 1-7.  
> Easily beats DEFLATE variants across the whole range though.

For nowadays needs, ideally, `.kra` would be compressed with `zstd` only and its versatility in settings would determine if high compression is done at cost of time or if quick saves are done at cost of storage space. Unfortunately, `quazip` is already mixed into Krita in some shape or form. It would require changing libraries which would have a different API which might take months if ever approved or picked up by a dev.

> [@Lynx3d](#):
>
> Below level 3 bzip2 seems to make more sense, … probably only if it’ll be some popular download.

Bzip2 only makes sense for `.kra` because it’s a quick-win development. Ideally, Krita would use a library such as [`minizip-ng`](https://github.com/zlib-ng/minizip-ng) which supports pretty much all algorithms of `.zip` and has been having a much more active development than `quazip`.

---

_[View the full topic](https://krita-artists.org/t/extra-compress-kra-files-for-archival/42949)._
