# Memileo Impasto Brushes

**URL:** <https://krita-artists.org/t/memileo-impasto-brushes/92952>\
**Category:** Brushes and Bundles\
**Tags:** bundles, brushes\
**Created:** [June 3, 2024, 8:23pm UTC](https://krita-artists.org/t/memileo-impasto-brushes/92952 "2024-06-03T20:23:23Z")\
**Posts on this page:** 1\
**Showing post:** 116

<div class="post-metadata">

**Author:** ![Harvernardo](https://krita-artists.org/user_avatar/krita-artists.org/harvernardo/32/133062_2.png) [@Harvernardo](https://krita-artists.org/u/Harvernardo)\
**Post date:** [February 17, 2025, 12:07am UTC](https://krita-artists.org/t/memileo-impasto-brushes/92952/116 "2025-02-17T00:07:08Z")

</div>

For those having trouble importing the brushes on native installs in Linux, the author of this github issue traced the problem to the default chunk cache size of 8mb in libpng, preventing any brush larger than 8mb from importing since libpng will truncate the metadata when krita attempts to read from the .kpp file.

> <https://github.com/Draneria/Metallics-by-Draneria_Krita-Brushes/issues/4>
>
> So, this is more of a heads-up than an issue, but it may make sense to add this …information to the README.
> 
> I noticed that not all brushes were loading on my NixOS, and after a lot of digging, I discovered that \`libpng\` was truncating the iTXt metadata, and the only solution that I found is to recompile \`libpng\` with this patch:
> 
> \`\`\`diff
> diff --git a/scripts/pnglibconf.dfa b/scripts/pnglibconf.dfa
> index fe8e481..ecaffe7 100644
> \--- a/scripts/pnglibconf.dfa
> +++ b/scripts/pnglibconf.dfa
> @@ -516,8 +516,8 @@ setting USER\_WIDTH\_MAX default 1000000
> setting USER\_HEIGHT\_MAX default 1000000
>  
> # Use 0 for unlimited
> \-setting USER\_CHUNK\_CACHE\_MAX default 1000
> \-setting USER\_CHUNK\_MALLOC\_MAX default 8000000
> +setting USER\_CHUNK\_CACHE\_MAX default 0
> +setting USER\_CHUNK\_MALLOC\_MAX default 0
>  
> # If this option is enabled APIs to set the above limits at run time are added;
> # without this the hardwired (compile time) limits will be used.
> \`\`\`
> 
> This is the overlay for those that use NixOS:
> \`\`\`nix
> qt5 = p.qt5.overrideScope (qtf: qtp: {
> qtbase = qtp.qtbase.override {
> libpng = p.libpng.overrideAttrs (old: {
> patches = \[./libpng.patch \];
> });
> };
> });
> \`\`\`

Applying the patch to increase the chunk cache size resolved the issue for me. But if your package manager does not support applying user patches, then copying over the resourcecache.sqlite of a compatible version of krita that was able to successfully import the brushes seems to work just fine too.

Hope this helps.

---

_[View the full topic](https://krita-artists.org/t/memileo-impasto-brushes/92952)._
